[ create a new paste ] login | about

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

C, pasted on Mar 2:
1
2
3
4
5
6
#include <stdio.h>
#define N 10    
int main(){
   char str2[N]={"Hello"};
   printf("\n%p %c, %p %c\n",str2, *(str2), *(&str2), **(&str2));
}  


Output:
1
2
3
4

0xbf587046 H, 0xbf587046 H

Exited: ExitFailure 28


Create a new paste based on this one


Comments: