Question PRG-C-0028
EasyWhat is the output of this program?
#include <stdio.h>
int main() {
for (int i = 0; i < 3; i++)
printf("%d", i);
return 0;
}
- A.
123
- B.
012
- C.
Sign up free to see the answer and a step-by-step explanation.
Popular companies
Prepare company by company
Hiring pattern, syllabus, past questions and mocks for each company.
All companiesPractice by subject
C question
What is the output of this program?
#include <stdio.h>
int main() {
for (int i = 0; i < 3; i++)
printf("%d", i);
return 0;
}
123
012
Sign up free to see the answer and a step-by-step explanation.
0123
12