what is the value of b
if a=5;
b=++a + ++a
Answer Posted / sagar
here in b=++a + ++a;
a
Initial Value 5
First Prefix 6
Second Prefix 7
Final Equation b = 7 + 7 = 14...
So,correct answer is 14....
if the equation was as below:
c=++a;//a==6
d=++a;//a=7
b=c+d;//b=6+7=13
then b==13...
| Is This Answer Correct ? | 97 Yes | 29 No |
Post New Answer View All Answers
Explain can the sizeof operator be used to tell the size of an array passed to a function?
What is c programming structure?
find the output? void r(int a[],int c, int n) { if(c>n) { a[c]=a[c]+c; r(a,++c,n); r(a,++c,n); } } int main() { int i,a[5]={0}; r(a,0,5); for(i=0;i<5;i++) printf("\n %d",a[i]); getch(); }
What is the use of a semicolon (;) at the end of every program statement?
What is a file descriptor in c?
Explain what is the heap?
Explain how do I determine whether a character is numeric, alphabetic, and so on?
Write the test cases for checking a variable having value in range -10.0 to +10.0?
What is pivot in c?
Differentiate between Macro and ordinary definition.
Explain about the constants which help in debugging?
What are nested functions in c?
Is printf a keyword?
Explain how do you sort filenames in a directory?
what do the 'c' and 'v' in argc and argv stand for?