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;
}
#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 ::
No Discussion on this question yet!