Examveda
Examveda

What will be the output of the following C code?
#include <stdio.h>
int main()
{
    int i = -3;
    int k = i % 2;
    printf("%d\n", k);
}

A. Compile time error

B. -1

C. 1

D. Implementation defined

Answer: Option B


This Question Belongs to C Program >> C Fundamentals

Join The Discussion

Related Questions on C Fundamentals