[Updated] Goldman Sachs Aptitude Test Questions and Answers
Practice List of TCS Digital Coding Questions !!!
Take 50+ FREE!! Online Data Interpretation Mock test to crack any Exams.

C Programming :: Loop Control - Discussion

Home > C Programming > Loop Control > MCQs Questions Discussion

19 / 61

What is the output of the following 'C' program ?

#include <stdio.h>
int main()
{
int c = 0;
do
{
int c = 0;
++c ;
printf("\n c = %d ", c );
}
while( ++c <= 3 );
printf("\n c = %d\n", c );
return 0;
}

Ac = 1 c = 1 c = 1 c = 1 c = 4

Bc = 1 c = 1 c = 1 c = 4 c = 4

CCompilation Error

DNone of these

Answer: Option (Login/Signup)

Show Explanation

Asked In ::

Post Your Answer Here:     

No Discussion on this question yet!