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

Answer Posted / debashree

#include<stdio.h>
int main()
{
int x=1,y;
y=x++ + ++x;
printf("y=%d\n",y);
return 0;
}
o/p->
y=4

Is This Answer Correct ?    17 Yes 7 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What are types of structure?

604


write a program that declares an array of 30 elements named "income" in the main functions. then cal and pass the array to a programmer-defined function named "getIncome" within the "getIncome" function, ask the user for annual income of 30 employees. then calculate and print total income on the screen using the following function: "void getIncome ( ai []);

1848


Which programming language is best for getting job 2020?

607


typedef struct{ char *; nodeptr next; } * nodeptr ; What does nodeptr stand for?

1076


What is the difference between strcpy() and memcpy() function in c programming?

626






How reliable are floating-point comparisons?

630


What is the difference between if else and switchstatement

1312


Explain what does it mean when a pointer is used in an if statement?

617


What is the advantage of a random access file?

639


What is dynamic memory allocation?

810


what will be maximum number of comparisons when number of elements are given?

1410


What are the data types present in c?

629


What is pointer to pointer in c?

634


What is the translation phases used in c language?

636


How does selection sort work in c?

623