1.What would be the output of the following C program?
void main()
{
printf("Hai");
printf("hru");
getch();
}
A)Hai HRU
B)Haihru
C)hai
HRU
D)HAIHRU
Answer:
2.What would be the output of the following C program?
void main()
{
int s=528,r=65;
printf("%d%c",s,r);
getch();
}
A)528 a
B)a 528
C)528A
D)A528
Answer:
1.Ans B
ReplyDelete2.Ans C
ReplyDelete