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()
{
char a = ‘A’;
char b = ‘B’;
int c = a + b % 3 – 3 * 2;
printf(“%d\n”, c);
}

What will be the output of the following C code?
#include <stdio.h>
void main()
{
char a = ‘A’;
char b = ‘B’;
int c = a + b % 3 – 3 * 2;
printf(“%d\n”, c);
}
a) 65
b) 58
c) 64
d) 59

Answer: d

Join The Discussion