Keith_S_Thompson

Untitled

Feb 16th, 2015
235
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C 0.22 KB | None | 0 0
  1. #include <stdio.h>
  2. int main(void) {
  3.     char s[6] = "hello";
  4.     printf("%d\n", (int)s);
  5.     printf("%d\n", (int)&s[0]);
  6.  
  7.     s[0] = 'x';
  8.     printf("%d\n", (int)s);
  9.     printf("%d\n", (int)&s[0]);
  10.     return 0;
  11. }
Advertisement
Add Comment
Please, Sign In to add comment