Wednesday, January 21, 2009

Find the correct output

void main()
{
char a[]=”rama”;
char b[]=a;
printf (“%d %s”, sizeof (b),b);
}

(a) 5 rama

(b) 4 rama

(c) 5 r

(d) None of these, some other reason

No comments: