1,968 views
0 votes
0 votes
char *a,*b,c[10],d[10];

a=b;

b=c;

c=d;

d=a;

choose the correct statements having errors

a)no error

b)a=b; and  b=c;

c=d; and d=a;

d)a=b; and d=a;

1 Answer

Best answer
1 votes
1 votes

compiler error

you can't modify base address of array.

assignment expression c=d and d=a not valid

selected by

Related questions

1 votes
1 votes
2 answers
2
Anurag_s asked Oct 18, 2015
572 views
consider following code segment  in cmain(){char * z="abc";z[0]='x';printf("%s",z);}what will be behavior of the programa>compiler error   b>runtime error c>no error pr...
1 votes
1 votes
1 answer
3