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

Answer Posted / manojkumar

I have worked out this.in turbo c3
#include<stdio.h>
#include<conio.h>
void main()
{ clrscr();
int x,y;
x=4;
printf("%d",x++ + ++x);
getch();
}

output:
10

Is This Answer Correct ?    23 Yes 5 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

Why is c platform dependent?

609


What does %p mean?

578


What tq means in chat?

569


What would the following code segment printint k = 8;docout << "k = " << k << " ";while k++ < 5; a) 13 b) 5 c) 8 d) pointers

663


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

1595






Explain pointer. What are function pointers in C?

616


What is the difference between near, far and huge pointers?

618


What Is The Difference Between Null And Void Pointer?

627


Take an MxN matrice from user and then sum upper diagonal in a variable and lower diagonal in a separate variables. Print the result

1456


Does * p ++ increment p or what it points to?

599


the 'sizeof' operator reported a larger size than the calculated size for a structure type. What could be the reason?

546


Please send me WIPRO technical question to my mail ID.. its nisha_g28@yahoo.com please its urgent

1633


What is local and global variable in c?

604


Why static variable is used in c?

540


Are bit fields portable?

666