Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #include <stdio.h>
- int main(void) {
- char s[6] = "hello";
- printf("%d\n", (int)s);
- printf("%d\n", (int)&s[0]);
- s[0] = 'x';
- printf("%d\n", (int)s);
- printf("%d\n", (int)&s[0]);
- return 0;
- }
Advertisement
Add Comment
Please, Sign In to add comment