what is the value of b
if a=5;
b=++a + ++a
Answer Posted / goldy ramnani
13
because 1stly a=5,
then compiler compile fromleft to right,
so ++a means a=6 then
++a a=6 now a=7,lastly 7+6=13
| Is This Answer Correct ? | 1 Yes | 2 No |
Post New Answer View All Answers
Why shouldn’t I start variable names with underscores?
Disadvantages of C language.
Describe the difference between = and == symbols in c programming?
Why do we use return in c?
Why c is called top down?
What are the 5 organizational structures?
What is the difference between malloc() and calloc() function in c language?
Can you please compare array with pointer?
How do you convert a decimal number to its hexa-decimal equivalent.Give a C code to do the same
What is data types?
What is extern variable in c with example?
What is the purpose of clrscr () printf () and getch ()?
pgm to find number of words starting with capital letters in a file(additional memory usage not allowed)(if a word starting with capital also next letter in word is capital cann't be counted twice)
What is the difference between Printf(..) and sprint(...) ?
What is static memory allocation? Explain