[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

43 / 61

What will be the output of the following C program?

#include<stdio.h>
void main()
{
sum = 0;
for (i = 1; i < = 10; i++)
if (i%2 == 0) 
sum += i;
printf ("%d",sum); 
}

A45

B0

C40

D30

Answer: Option (Login/Signup)

Show Explanation

Asked In ::

Post Your Answer Here:     

No Discussion on this question yet!