Advertisement
Guest User

Untitled

a guest
Apr 8th, 2020
215
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C 0.30 KB | None | 0 0
  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. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement