void main()
{
int i=5;
printf("%d",i++ + ++i);
}

Answer Posted / abhijeet dongre

I HAVE PRACTICED MANY ASPECTS OF THESE QUESTIONS
THING IS THAT
PRINTING VALUES IS FROM RIGHT TO LEFT.
SOLVING AN EXPRESSION IS FROM LEFT TO RIGHT.
SOME SAMPLE OUTPUTS:-(TRY IT)
int i=5;
printf("%d",i++ + ++i); 12(5+7 only)(not 6+6)

int i=5;
printf("%d",i++ * ++i); 35(5*7 only)(not 6*6)

int i=5;
printf("%d %d",i++ + ++i,i); 12 5

int i=5;
printf("%d",i++ + i++); 11 7
printf(" %d",i);

Is This Answer Correct ?    8 Yes 5 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

Write a function that will take in a phone number and output all possible alphabetical combinations

607


What are data types in c language?

590


Write a program that takes a 5 digit number and calculates 2 power that number and prints it(should not use big integers and exponential functions)

5806


Explain what is the difference between functions abs() and fabs()?

626


What is the right way to use errno?

625






What is calloc malloc realloc in c?

598


What are the 32 keywords in c?

639


What is %s and %d in c?

595


Write a C program to count the number of email on text

1422


Write a progarm to find the length of string using switch case?

1616


Explain how can I right-justify a string?

627


What is zero based addressing?

722


a program that performs some preliminary processing in C, it acts upon certain directives that will affect how the compiler does its work a) compiler b) loader c) directive d) preprocessor

644


to print the salary of an employee according to follwing calculation: Allowances:HRA-20% of BASIC,DA-45% of BASIC,TA-10%. Deductions:EPF-8% of BASIC,LIC-Rs.200/-Prof.Tax:Rs.200/- create c language program?

1575


Describe newline escape sequence with a sample program?

660