C - Data Types - Discussion

You Are Here :: Home > C > Data Types - Discussion

 



Q.

What will be the output of the following code ?

static int i = ;
main ( )
{
int sum=;
do
{
sum+=(/i);
}while (
printf ("sum of the series is %d", sum );
}

A. It will print the sum of the series 1/5+1/4+.....+1/1. B. It will produce a compilation error.
C. It will produce a runtime error. D. None of the above.

Answer: Option C
Explaination:

No Explanation



Discussion

Your Comments Goes here...
NameDiscussion