C
Programming and Technical
Programming
Program
What will be the output of the program?
#include
int main()
{
int i=-3, j=2, k=0, m;
m = ++i && ++j && ++k;
printf("%d, %d, %d, %dn", i, j, k, m);
return 0;
}
Options
1) -2, 3, 1, 1
2) 2, 3, 1, 2
3) 1, 2, 3, 1
4) 3, 3, 1, 2
Read Solution (Total 2)
-
- Answer:1
- 8 years agoHelpfull: Yes(0) No(0)
- 1) -2, 3, 1, 1
- 8 years agoHelpfull: Yes(0) No(0)
C Other Question
When we mention the prototype of a function?
Options
1) Defining
2) Declaring
3) Prototyping
4) Calling
If char=1, int=4, and float=4 bytes size, What will be the output of the program ?
#include
int main()
{
char ch = 'A';
printf("%d, %d, %d", sizeof(ch), sizeof('A'), sizeof(3.14f));
return 0;
}
Options
1) 1, 2, 4
2) 1, 4, 4
3) 2, 2, 4
4) 2, 4, 8