Monday 8 April 2013

char a[4]="HELLO";


    main()
{
char a[4]="HELLO";
printf("%s",a);
}  
Answer:
         Compiler error: Too many initializers
Explanation:
The array a is of size 4 but the string constant requires 6 bytes to get stored.


Blog Author: Vijay Kumar

No comments:

Post a Comment