What will be the output of following program? #include <stdio.h> int main() { int i=-1, j=-1, k=0, l=2, m; m= i++ && j++ && k++ || l++; printf("%d…

What will be the output of following program?

#include <stdio.h>
int main() {
    int i=-1, j=-1, k=0, l=2, m;
    m= i++ && j++ && k++ || l++;
    printf("%d %d %d %d %d", i, j, k, l, m);
    return 0;
}

From the Dhaka WASA Assistant Maintenance Engineer (Network) July 2025 – Written (BUET) exam, question 6 of 15.

More from this paper