manichandra
Technical User
output of this
_____________________
int main()
{
char s[]="MANI";
char *p;
p=s;
*p = "CUCKOO";
//*(p+1)='C';
//*(p+2) = 'B';
//*(p+3) = 'D';
printf("%s\n",s);
printf("%s\n",p);
return 0;
}
____________________________
is
eANI
eANI
y can't we male p to pint to other straining "CUCKOO" ?
_____________________
int main()
{
char s[]="MANI";
char *p;
p=s;
*p = "CUCKOO";
//*(p+1)='C';
//*(p+2) = 'B';
//*(p+3) = 'D';
printf("%s\n",s);
printf("%s\n",p);
return 0;
}
____________________________
is
eANI
eANI
y can't we male p to pint to other straining "CUCKOO" ?