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 / vignesh1988i
the final value of x is 6
Is This Answer Correct ? | 10 Yes | 1 No |
Post New Answer View All Answers
What are enumerated types?
How do I determine whether a character is numeric, alphabetic, and so on?
Why is c so powerful?
Why are algorithms important in c program?
Explain what does a function declared as pascal do differently?
In c language can we compile a program without main() function?
What is the general form of a C program?
Explain what are header files and explain what are its uses in c programming?
What is c programming structure?
Explain what is page thrashing?
How can I access an I o board directly?
What is build process in c?
write a program to print largest number of each row of a 2D array
Given below are three different ways to print the character for ASCII code 88. Which is the correct way1) char c = 88; cout << c << " ";2) cout.put(88);3) cout << char(88) << " "; a) 1 b) 2 c) 3 d) constant
#define PRINT(int) printf("int = %d ",int) main() {< BR> intx,y,z; x=03;y=02;z=01; PRINT(x^x); z<<=3;PRINT(x); y>>=3;PRINT(y); }