SHARE
TWEET

Untitled

a guest Apr 8th, 2020 166 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. #include <stdio.h>
  2. #include <string.h>
  3.  
  4. int main() {
  5.     const char* c   = "testing";
  6.     const char  d[] = "testing";
  7.  
  8.     printf("sizeof(c): %zd\n", sizeof(c));
  9.     printf("strlen(c): %zd\n", strlen(c));
  10.     printf("sizeof(d): %zd\n", sizeof(d));
  11.     printf("strlen(d): %zd\n", strlen(d));
  12. }
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
Top