What is the output of the following code? #include <stdio.h> int isLeapYear(int year); int main() { int a=1; printf("%d %d %d",++a,a,a++); return 0; }

What is the output of the following code?

#include <stdio.h>
int isLeapYear(int year);
int main() {
    int a=1;
    printf("%d %d %d",++a,a,a++);
    return 0;
}

From the NWPGCL Junior Assistant Manager (IT) 2022 – Written exam, question 3 of 3.

More from this paper