main(){int i, n;char *x = "girl";n = strlen(x);*x = x[n];for(i=0; i‹n; ++i) { printf("%s\n",x); x++; }}
This comment has been removed by the author.
lengt of x is 5n=5*x=x[5]; implicitely *x refers to x[0]*x='\0' a blank spaceten expected o/p isblank spaceggigirgirl
This comment has been removed by the author.
ReplyDeletelengt of x is 5
ReplyDeleten=5
*x=x[5]; implicitely *x refers to x[0]
*x='\0' a blank space
ten expected o/p is
blank space
g
gi
gir
girl