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


Please Help Members By Posting Answers For Below Questions

Is there a built-in function in C that can be used for sorting data?

742


in multiple branching construct "default" case is a) optional b) compulsarily c) it is not include in this construct d) none of the above

630


How was c created?

586


Where are the auto variables stored?

620


Where local variables are stored in c?

554






what is the difference between north western polytechnique university and your applied colleges?? please give ur answers for this. :)

1924


What do you understand by normalization of pointers?

619


Write the program that calculates and prints the average of several integers. Assume that the last value read is sentinel 9999.

3118


#define MAX(x,y) (x) >(y)?(x):(y) main() { inti=10,j=5,k=0; k= MAX(i++,++j); printf("%d..%d..%d",i,j,k); }

774


Explain modulus operator.

590


What is I ++ in c programming?

617


PROGRAM TO WRITE CONTENTS OF 1 FILE IN REVERSE TO ANOTHER FILE,PROGRAM TO COPY 1 FILE TO ANOTHER BY SPECIFYING FILE NAMES AS COMMAND LINE

1464


Write a program to generate a pulse width frequency of your choise,which can be variable by using the digital port of your processor

2976


What is a structure member in c?

536


What is the use of #define preprocessor in c?

611