what is the value of b
if a=5;
b=++a + ++a

Answer Posted / kaps

IT is defenetly 14...Ans = 14
Explanation:
Because ++a = 6
then again ++a = 7
Now compiler replace the both value with 7 (because of both
are of value of a).
So 7+7 = 14.

It is tested on turbo C...
try with adding one more ++a will give u ans 24(8+8+8) for
++a + ++a + ++a.

Is This Answer Correct ?    8 Yes 3 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What are dangling pointers in c?

650


What is the use of static variable in c?

599


What is this infamous null pointer, anyway?

616


What is pass by value in c?

605


what is associativity explain what is the precidence for * and & , * and ++ how the folloing declaration work 1) *&p; 2) *p++;

2020






How do you convert strings to numbers in C?

716


what is bit rate & baud rate? plz give wave forms

1525


Is c dynamically typed?

675


i want to know the procedure of qualcomm for getting a job through offcampus

1945


7-Given an index k, return the kth row of the Pascal's triangle. For example, when k = 3, the row is [1,3,3,1]. For reference look at the following standard pascal’s triangle.

2230


how to print electricity bill according to following charges first 100 units -1rs per unit for next 200 units-1.50 rs per unit without using conditions

2729


What is difference between main and void main?

637


What is the difference between #include

and #include “header file”?

557


Explain how can I convert a string to a number?

648


What is C language ?

1533