72. 다음 C언어프로그램이 실행되었을 때, 실행 결과는?
#include <stdio.h> #include <stdlib.h> int main(int argc, char *argv[]) { int i=0; while(1) { if(i==4) { break; } ++i; } printf("i=%d", i); return 0; }
- 1i = 0
- 2i = 1
- 3i = 3
- 4i = 4
#include <stdio.h> #include <stdlib.h> int main(int argc, char *argv[]) { int i=0; while(1) { if(i==4) { break; } ++i; } printf("i=%d", i); return 0; }