3.5 What is the output of the following ?
#include <stdio.h>
int
main ( void )
{
char a[] = "abc";
char b[] = "xyz";
*a = *b++;
puts ( a );
return 0;
}
Ans The only operation that can be performed directly on an array
value are the application of the sizeof and address (&) operators.
For sizeof, the array must be bounded and the result is the number of
storage units occupied by the array. The result of & is a pointer
to (the first element of) the array. And, in the above program we
are trying to increment array type, b, which is not allowed. It is
an error.