#include<stdio.h>
int main(){
int a=5;
printf("%d %d %d",a++,a++,++a);
return 0;
}..please explain me output 7 6 8..Thnx in advance
Answer Posted / abhijeet ankush gate rank 416
correct output is 766
explaination
printf function is right associative and starts reading from
right which is ++a.
in ++a value is 1st incremented and then printed
in a++ value is 1st printed and then incremented...
| Is This Answer Correct ? | 10 Yes | 11 No |
Post New Answer View All Answers
Write a test case plan for a typical banking application which involves functionalities like Balance enquiry, deposit, fund transfer etc. Make your assumptions and mention the same in your answer sheet.
how to conrtruct gear make him rotate on its axis
Given a number (N), program to check whether its binary form has periodic or not
I am student pursuing B.E/B.tech in Computers 8'th sem.What should i do for a better carrier.Plz suggest other than programming languages.Is the ERP a better one to do?plz help...
can u give me the information about the questions asked by the bally in campus
If i update, insert or delete records in my view will it affect my base table?????
int main() { int d = 10; int m = 2; int y = 3603; int c = 0; int val; val = ( d + m + y + (y/4) + c) % 7; cout << val; return 0; }
am looking for ms,i got ielts score 5.5,and i dont have english score 60 in any any year.tell me can i get offer lettr from any university.is i am elegible..?
how can determine grounded motor when it alarm at 440volt
When to use Stub and Not So Stubby Area? 10. How to get the external routes without making area Not So Stubby?
what are the main points to be included in our introduction when asked in hr...??
WHY WE SELECT U AS A PERTOLEUM ENGINEER THOUGH UR MARKS ARE LESS THEN OTHER APPLICANTS
My system suddenly get off,when i try to power on then it does not work but when i open it and clean RAM and insert it again, it power on.but after some day same problem? please give the answer (i have also changed RAM it's new.)
How we calculate steam turbine governor linkage assembly?
pls send me the e-book for verbal and non verbal reasoning of R S aggarwall