Categories

Jun 13, 2019 in C++

Q: What is the output of this C code?

    #include <stdio.h>
    int main()
    {
        int i = -3;
        int k = i % 2;
        printf("%d\n", k);
    }
a.Implementation defined
b.-1
c.1
d.Compile time error

Related questions

Madanswer
Jun 11 in C++
Jun 13, 2019 in C++
Jun 9 in C++
...