Operators
- What will be the output of the following C code?
-
View Hint View Answer Discuss in Forum
NA
Correct Option: C
6
- What will be the output of the following C code?
#include <stdio.h>
void main()
{
int p = -6;
int s = (p++, ++p);
printf("%d\n", s);
}
-
View Hint View Answer Discuss in Forum
NA
Correct Option: D
-4
- What will be the output of the following C code?
-
View Hint View Answer Discuss in Forum
NA
Correct Option: D
7 -7 2 1
- What will be the output of the following C code?
#include <stdio.h>
int main()
{
int p = 20, q = 10, r = 10;
int s;
s = p == (q + r);
printf("%d", s);
}
-
View Hint View Answer Discuss in Forum
NA
Correct Option: D
1
- What will be the output of the following C code?
#include <stdio.h>
void main()
{
int num1 = 2, num2 = 0, num3 = 6;
int Res = num1 && num2 && num3++;
printf("%d", num3);
}
-
View Hint View Answer Discuss in Forum
NA
Correct Option: C
6