What is the output of the
following program
1 point
#include <stdio.h>
void main()
{
int x = 0;
if (x == 0)
printf("hi");
else
printf("how are u");
printf("hello");
hi
O how are you
O hello
O hihello
Clear selection
Answers
Answered by
1
Answer:
hihello is the output..
Because value of x is 0 therefore if part will execute and else part reamain unexecuted...
Answered by
0
Answer:
In the context of printf() and fprintf(), as per C standard C11 clause 7.21.6.1, "If there are insufficient arguments for the format, the behavior is undefined. If the format is exhausted while arguments remain, the excess arguments are evaluated (as always) but are otherwise ignored."
Similar questions