because of return statement. it terminates the code. in the code was like
#include<stdio.h>
int main (){
int x=2, y=5;
if (x<y) return printf(“%d”,x+y);
else printf(“z1”);
printf(“z2”);
}
in the above case the output will be 7 because once the “return” function is executed, the whole code will be terminated.