Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #include <stdio.h>
- #include <string.h>
- int main() {
- const char* c = "testing";
- const char d[] = "testing";
- printf("sizeof(c): %zd\n", sizeof(c));
- printf("strlen(c): %zd\n", strlen(c));
- printf("sizeof(d): %zd\n", sizeof(d));
- printf("strlen(d): %zd\n", strlen(d));
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement