Monday, April 21, 2014

C pointer ex2


Code
main(){
  char *str1="abcd";
  char str2[]="abcd";
  printf( "%d %d %d %d",sizeof(str1),sizeof(*str1),sizeof(str2),sizeof("abcd"));

  getch();
}

Output

No comments :

Post a Comment