Computer Science, asked by avantika70, 11 months ago

what is the output of the following C code ?
#include <stdio.h>
int main()
{
int a=1;
if (a--)
printf("Hello\n");
if (++a)
printf("Hi\n");
return 0;
}

a) Hello
b)Hi
c) both" Hello" and "Hi"
d) compilation error

Answers

Answered by Quadir07
4

the correct answer is option d i.e. compilation error.

plzz follow me☺

Similar questions