Advertisement Remove all ads

P 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; } - Structured Programming Approach

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
Advertisement Remove all ads
Share
Notifications

View all notifications


      Forgot password?
View in app×