can anybody explain me the output of this question..
problem lies in *x=x[3];
on running it linux env it shows run time error,but i try to run it on Ideone.com | Online IDE & Debugging Tool
and i got the output...
Code:#include <stdio.h> #include <string.h> int main(){ int i; char *x="Alice"; *x=x[3]; for(i=0;i<=5;i++){ printf("%s\n",x); x++; } return(0); }