C Programming
What will be the value of sum after the following program is executed?void main(){ int sum=1, index = 9; do{ index = index – 1; sum *= 2; }while( index > 9 );}

9
2
0.25
1
0.5

ANSWER DOWNLOAD EXAMIANS APP

C Programming
What is the difference between a declaration and a definition of a variable?

A declaration occurs once, but a definition may occur many times.
A definition occurs once, but a declaration may occur many times.
There is no difference between them.
Both can occur multiple times, but a definition must occur first.
Both can occur multiple times, but a declaration must occur first.

ANSWER DOWNLOAD EXAMIANS APP