0
What is the output?
#include<stdio.h> int main() { int i=1; for(printf("1") ; !printf("2"); printf("3")) { printf("\n hii"); } return 0; }
1 Réponse
+ 13
for(printf("1") ; !printf("2"); printf("3"))
{
printf("\n hii");
}
printf("1") is executed. Program checks for condition, printf("2") is executed.
!printf("2") evaluates to false, the loop contents do not run, increment statement is not executed.
Output: 12