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 maximum length of an identifier?
Is c# a good language?
What does the format %10.2 mean when included in a printf statement?
Can we use visual studio for c?
Where define directive used?
How to compare array with pointer in c?
What is omp_num_threads?
write a C program:There is a mobile keypad with numbers 0-9 and alphabets on it. Take input 0f 7 keys and then form a word from the alphabets present on the keys.
Add Two Numbers Without Using the Addition Operator
What are global variables and explain how do you declare them?
What is ctrl c called?
What is difference between class and structure?
develop algorithms to add polynomials (i) in one variable
count = 0; for (i = 1;i < = 10; i++);count = count + i; Value of count after execution of the above statements will be a) 0 b) 11 c) 55 d) array
What is use of null pointer in c?