What will be the output of the following program?

Output of the program:

#include <stdio.h>

void main(void) {

int x, y, z1, z2, z3, z4;

x = 17;

y = 5;

z1 = x / y;

printf("\nz1=%d", z1); // z1 = 17 / 5 = 3
z2 = x % y;

printf("\nz2=%d", z2); // z2 = 17 % 5 = 2
z3 = ++x;

printf("\nz3=%d", z3); // z3 = ++x = 18
z4 = y++;

printf("\nz4=%d", z4); // z4 = y++ = 5 (post-increment)
}

Output:

ini
z1=3
z2=2
z3=18
z4=5