What will be the output of the following C code?
#include <stdio.h>
void main()
{
int a = 5 * 3 % 6 - 8 + 3;
printf("%d", a);
}
#include <stdio.h>
void main()
{
int a = 5 * 3 % 6 - 8 + 3;
printf("%d", a);
}
A. 10
B. 2
C. -2
D. -3
Answer: Option C
Join The Discussion