SELF
Exam
Programming
What will be output of the following c program?
#include "stdio.h"
int main()
{
int _ = 5;
int __ = 10;
int ___;
___ = _ + __;
printf("%i", ___);
return 0;
}
Read Solution (Total 3)
-
- Ans 15;
Because _ is a valid identifier in c-language so here in int _ _ is an identifier
so sum of these 5+10=15 - 11 years agoHelpfull: Yes(2) No(0)
- 5+10=15
because here _ works as an identifier - 11 years agoHelpfull: Yes(0) No(0)
- Answer is 15
because it treat the underscores also as variables - 4 years agoHelpfull: Yes(0) No(0)
SELF Other Question