Register Now

Login

Lost Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

What will be the output of the following C code?
#include <stdio.h>
void main()
{
int a = 2 + 3 – 4 + 8 – 5 % 4;
printf(“%d\n”, a);
}

What will be the output of the following C code?
#include <stdio.h>
void main()
{
int a = 2 + 3 – 4 + 8 – 5 % 4;
printf(“%d\n”, a);
}
a) 0
b) 8
c) 11
d) 9

Answer: b

Join The Discussion