C
Programming and Technical
Programming
Program
What will be the output of the program?
#include
int main()
{
char ch;
if(ch = printf(""))
printf("It mattersn");
else
printf("It doesn't mattersn");
return 0;
}
Options
1) It matters
2) It doesn't matters
3) matters
4) No output
Read Solution (Total 2)
-
- Answer:2
- 8 years agoHelpfull: Yes(0) No(1)
- option-2
because in if() block check for condition and condition is always become false but in case of else there is no condition is checked so it executed always. - 7 years agoHelpfull: Yes(0) No(0)
C Other Question