C Programming :: Arrays - Discussion
Home > C Programming > Arrays > MCQs Questions Discussion
25 / 55
What will be the output of the program ?
#include<stdio.h>
void main()
{
char a[4]="HELLO";
printf("%s",a);
}
#include<stdio.h>
void main()
{
char a[4]="HELLO";
printf("%s",a);
}
AOutput: HELL Warning: initializer-string for array of chars is too long
BCompiler error: Too many initializers
CHELL
DNone of these
Answer: Option (Login/Signup)
Show Explanation
Asked In ::
No Discussion on this question yet!