what is the output of following question?
int a=5;
printf("%d",a++ + ++a);

Answer Posted / thapaswi

12

because

a++=5 then a will be incremented
a become 6

++a=7

answer will 5+7=12

Is This Answer Correct ?    8 Yes 2 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

what things abutsbi

1571


write a program to reverse a string using recursive function without using str functions.

1947


I am pavani pursuing 4th B.Tech final semester i want to write the Group 2 Examination , Eligibility of that exam is all degree holders but to hold my Degree 3months are more. but the exam held on 3rd July 2012. i would be complete my B.Tech when exam to be held. so am i eligible to Group2 exam or not , please clarify my doubt.

1418


Write a program to maintain a singly linked list having the following functions: a) Creation of the list b) Displaying the list. c) Swap all nodes at consecutive even odd positions. E.g.: The nodes at position 1 should be swapped with node 2, node 3 with node 4 and so on.

7097


Please help to write testcase for ECG machine

1444






Please explain me gsm call scenario for a prepaid roamer calling to a prepaid roamer?

2035


an upper layer message is split into 10 frames each of which has an 80 percent chance of arriving undamaged.if no error control is done by the data link protocol,how many times must the message be sent on the average to get the entire thing through?

2527


discuss the conditional formatting and advanced filtering features in MS-Excel with suitable example

1360


Why is using C language

1554


can u perform addition of two octal numbers using java?

4952


What would be the difficulties with building a bridge that connects the UK and Canada?

651


What is IPSec?

1572


I need to know the process to add 100 tapes in ATL. Ho to inicialize them to the system? How is all the process i need to follow> Thanks

1736


how to connect oracle with java ? Give detail explanation.

1535


What is the key element of Defect Report and Test case format?

1181