consider the following C code
main()
{
int i=3,x;
while(i>0)
{
x=func(i);
i--;
}
int func(int n)
{
static sum=0;
sum=sum+n;
return(sum);
}
the final value of x is
Answer Posted / yogendra jain
6
Is This Answer Correct ? | 15 Yes | 2 No |
Post New Answer View All Answers
if a is an integer variable, a=5/2; will return a value a) 2.5 b) 3 c) 2 d) 0
Do pointers need to be initialized?
What are the main characteristics of c language describe the structure of ac program?
When should the register modifier be used? Does it really help?
Describe wild pointers in c?
How many types of arrays are there in c?
What are the data types present in c?
What are the two types of functions in c?
Why is event driven programming or procedural programming, better within specific scenario?
Explain is it valid to address one element beyond the end of an array?
Is it better to bitshift a value than to multiply by 2?
What does s c mean on snapchat?
What do you mean by dynamic memory allocation in c?
What is typedef?
What is a ternary operator in c?