228 views
1 votes
1 votes

consider --

static char *s[ ]  =  {  "sumit" ,  " ankit "  } ;

char **ptr  = { s , s+1 } ;

char ***p  = ptr ;

 ----------------------------

below code is same  or not   if  static is not used  , what is  work performed by static  here ??

 char *s[ ]  =  {  "sumit" ,  " ankit "  } ;

char **ptr  = { s , s+1 } ;

char ***p  = ptr ;

Please log in or register to answer this question.

Related questions

1 votes
1 votes
0 answers
3
sumit goyal 1 asked Jan 29, 2018
220 views
main(){char a[22] = "sumit"printf("%s",a);}It prints sumit fine here but ,if statement is printf("%c",a); It should print s but it is printing $\alpha$iam bit confu...