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

#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); }

782


Which are low level languages?

636


What are the basic data types associated with c?

817


What is the use of pragma in embedded c?

592


Write a program to swap two numbers without using third variable?

814






What are the output(s) for the following ? #include char *f() {char *s=malloc(8); strcpy(s,"goodbye")} main() { char *f(); printf("%c",*f()='A'); }

700


Explain the properties of union. What is the size of a union variable

718


Is void a keyword in c?

578


I have a varargs function which accepts a float parameter?

579


What is the use of ?: Operator?

666


Is malloc memset faster than calloc?

616


How many levels of pointers can you have?

705


What is the use of header?

623


Can stdout be forced to print somewhere other than the screen?

627


What is difference between static and global variable in c?

539