Howdy, Stranger!

It looks like you're new here. If you want to get involved, click one of these buttons!

Categories

why the string at eb[2] after changing its content to "changed" is showing garbage value?

Shikha SinghShikha Singh bhopalMember Posts: 2

include<stdio.h>

void main()
{
char *title[]={"travel","hamlet","odessey","julius caeser",mob dickey"};
char **bb[2];
char **eb[3];
bb[0]=&title[0];
bb[1]=&title[3];
eb[0]=&title[0];
eb[1]=&title[4];
eb[2]=&title[2];
printf("%s\n",*eb[2]);
*eb[2]="changed";
printf("%s",*eb[2]);
return 0;
}

Best Answer

Sign In or Register to comment.