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
What is the deal on sprintf_s return value?
What are the advantages of union?
What is meant by errors and debugging?
write a sorting prgm to sort 50 nos and sum them and also remove all the occurrences of 15 and print it?
How can variables be characterized?
What is #include cctype?
What is a scope resolution operator in c?
What does 3 periods mean in texting?
write a programming in c to find the sum of all elements in an array through function.
In C, What is the #line used for?
Explain the difference between #include "..." And #include <...> In c?
Explain what are multibyte characters?
Explain what is the difference between a free-standing and a hosted environment?
general for is %wd,f-d; in this system "w" means a) 'w' represent total width of digits b) 'w' represent width which includes the digits before,after decimal place and the decimal point c) 'w' represent width which includes the digits before only d) 'w' represent width after decimal place only
Write a program to reverse a linked list in c.