Assume that the size of an integer is 4 bytes, predict the output of the following program. #include <stdio.h> int main() { int i = 12; int j =…

Assume that the size of an integer is 4 bytes, predict the output of the following program.

#include <stdio.h>
int main() {
    int i = 12;
    int j = sizeof(i++);
    printf("%d  %d", i, j);
    return 0;
}
  1. a) 12 4
  2. b) 13 4
  3. c) Compiler Error
  4. d) 0 4

From the BB Assistant Programmer February 2023 – Written (BIBM) exam, question 23 of 37.

More from this paper