What will be the output of the following pseudocode ? int a, b, c; b = 5, a = 2, c = 2; if(b>a && a>c && c>b) { b = a + 1; } else a = b + 1; printf("%d",a + b + c);
Share
What will be the output of the following pseudocode ? int a, b, c; b = 5, a = 2, c = 2; if(b>a && a>c && c>b) { b = a + 1; } else a = b + 1; printf("%d",a + b + c);
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Verified answer
Answer:
13
Explanation:
if loop fails and else loop runs ,so the final value is 6+5+2 = 13