[ create a new paste ] login | about

Link: http://codepad.org/CoA38yfG    [ raw code | output | fork ]

C, pasted on Mar 2:
1
2
3
4
5
6
7
8
#include <stdio.h>
#define N 10    
int main(){
   char str2[N]={"Hello"};

   printf("\n %p, %p\n",str2, str2+1);
   printf("\n %p, %p\n",(&str2), (&str2+1));
}  


Output:
1
2
3
4
5
6

 0xbf67e142, 0xbf67e143

 0xbf67e142, 0xbf67e14c

Exited: ExitFailure 25


Create a new paste based on this one


Comments: