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 file in c preprocessor?
Do you know null pointer?
What is the use of in c?
What is declaration and definition in c?
What is the use of void pointer and null pointer in c language?
How can I determine whether a machines byte order is big-endian or little-endian?
What is function pointer c?
Define Spanning-Tree Protocol (STP)
What is size of union in c?
What are local variables c?
What is #line?
Simplify the program segment if X = B then C ← true else C ← false
Are pointers integers in c?
What do you mean by command line argument?
State two uses of pointers in C?