what is the Output?
int a=4 b=3;
printf("%d%d%d%d%d%d",a++,++a,a++,a++,++a,a++);
printf("%d%d%d%d%d%d",b--,b--,--b,b--,--b,--b);
Answer Posted / suresh mca
output
997664
-2-1-1112
here the concept is very is....
the work flow of the printf statement is right to left
and display of the statement is left to right.......
thats all very simple logic
| Is This Answer Correct ? | 7 Yes | 0 No |
Post New Answer View All Answers
a number whose only prime factors are 2,3,5, and 7 is call humble number,,write a program to find and display the nth element in this sequence.. sample input : 2,3,4,11,12,13, and 100.. sample output : the 2nd humble number is 2,the 3rd humble number is 3,the 4th humble number is ,the 11th humble number is 12, the 12th humble number is 14, the 13th humble number is 15, the 100th humble number is 450.
Can we declare variable anywhere in c?
What is I ++ in c programming?
what do you mean by inline function in C?
how do you write a function that takes a variable number of arguments? What is the prototype of printf () function?
Explain how do you search data in a data file using random access method?
Why pointers are used in c?
process by which one bit patten in to another by bit wise operation is? (a) masking, (b) pruning, (c) biting, (d) chopping,
Tell us the use of fflush() function in c language?
What is a program?
What is a null pointer assignment error? What are bus errors, memory faults, and core dumps?
What are variables and it what way is it different from constants?
What is the package for freshers(Non IIT) in amazon(hyderabad). And what is the same for those who are a contract employee.
Differentiate between a structure and a union.
Differentiate between the = symbol and == symbol?