[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

34 / 61

What will be the value of sum after the following C program is executed?

#include<stdio.h>
void main()
{
int sum, index
sum= 1;
index= 9;
do { 
index = index - 1;
sum =2* sum;
} while(index > 9);
}

A1

B2

C9

D0.5

Answer: Option (Login/Signup)

Show Explanation

Asked In ::

Post Your Answer Here:     

No Discussion on this question yet!