-
What will be the output of the following C code?
#include <stdio.h>
int main()
{
int a = 4, b = 3;
int c = a && b = 4;
printf("%d\n", c);
}
-
- 3
- 4
- Runtime Error
- Compilation Error
- None of these
Correct Option: D
Compilation Error
main.c: In function ‘main’:
main.c:5:24: error: lvalue required as left operand of assignment
int c = a && b = 4;