MCQs > IT & Programming > C Programming > Output as a result of the following code snippet? main() { signed char i = 1; for (; i<=255; i++) printf ('%d ',i); return 0; }

C Programming MCQs

What would be printed on the standard output as a result of the
following code snippet?
main()
{
signed char i = 1;
for (; i<=255; i++)
printf ("%d ",i);
return 0;
}

Answer

Correct Answer: 1 2 3 . . . 127 -128 -127 ... 0 1 2 3 . . . (infinite times)

Explanation:

Note: This Question is unanswered, help us to find answer for this one

C Programming Skill Assessment

Overall Skill Level-Poor

Your Skill Level: Poor

Retake Quizzes to improve it

search

C Programming Skill Assessment

Overall Skill Level-Poor

Your Skill Level: Poor

Retake Quizzes to improve it