MCQs > IT & Programming > C Programming > Following code is executed? { int num; num =0; do {-- num; printf('%d\n', num); num++; } while (num >=0); }

C Programming MCQs

What will happen when the following code is executed?

{
int num;
num =0;
do {-- num;
printf("%d\n", num);
num++;
} while (num >=0);
}

Answer

Correct Answer: There will be a compilation error

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