Advertisement Remove all ads
Advertisement Remove all ads
Write the output of following code:
#include<stdio.h>
int main()
{
int val = 1;
do{
val++;
++val;
}while(val++>25);
printf(“%d\n”,val);
return 0;
}
Advertisement Remove all ads
Solution
Output: 4
Concept: Control Structures - Looping
Is there an error in this question or solution?
Advertisement Remove all ads
APPEARS IN
Advertisement Remove all ads