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

Answer Posted / pawan patil

it's very simple that value of b=13
because the actual value of a=5 then
b=++a + ++a
b=(6) + (++6)= 12
b= (6) + (7)=13
then b=13

Is This Answer Correct ?    0 Yes 2 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What is indirection in c?

628


What is nested structure with example?

624


Write a program to print “hello world” without using semicolon?

674


How many keywords (reserve words) are in c?

621


What is the difference between pure virtual function and virtual function?

652






What is a null string in c?

589


Explain argument and its types.

605


What is c standard library?

692


write a C program: To recognize date of any format even formats like "feb-02-2003","02-february-2003",mm/dd/yy, dd/mm/yy and display it as mm/dd/yy.

3341


Can I initialize unions?

594


Write a function which takes as parameters one regular expression(only ? and * are the special characters) and a string and returns whether the string matched the regular expression.

653


How can I invoke another program or command and trap its output?

617


What are global variables?

648


How can I read data from data files with particular formats?

605


How do you define a function?

583