What will be the output of
x++ + ++x?

Answer Posted / sadashiv

these type of expression evaluation is dependent on
compiler

if u use turbo c and x =1;

then answer would be
main();
int x=1,y.
y = x++ + ++x.
printf /n'%d',y.
here y = 4

Is This Answer Correct ?    143 Yes 32 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

Explain how can you determine the size of an allocated portion of memory?

624


When should a type cast not be used?

627


Which are low level languages?

636


praagnovation

1780


C program to find all possible outcomes of a dice?

1855






can we implement multi-threads in c.

668


Write the test cases for checking a variable having value in range -10.0 to +10.0?

1817


Why is it usually a bad idea to use gets()? Suggest a workaround.

906


What is the return type of sizeof?

596


What are pointers in C? Give an example where to illustrate their significance.

751


What is the difference between pure virtual function and virtual function?

652


why programs in c are running with out #include? some warnings are display in terminal but we execute the program we get answer why? eg: main() { printf("hello world "); }

1317


please give me some tips for the placement in the TCS.

1633


What is calloc in c?

661


Differentiate fundamental data types and derived data types in C.

618