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
4
the correct answer is option d i.e. compilation error.
plzz follow me☺
Similar questions