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
What are types of structure?
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 []);
Which programming language is best for getting job 2020?
typedef struct{ char *; nodeptr next; } * nodeptr ; What does nodeptr stand for?
What is the difference between strcpy() and memcpy() function in c programming?
How reliable are floating-point comparisons?
What is the difference between if else and switchstatement
Explain what does it mean when a pointer is used in an if statement?
What is the advantage of a random access file?
What is dynamic memory allocation?
what will be maximum number of comparisons when number of elements are given?
What are the data types present in c?
What is pointer to pointer in c?
What is the translation phases used in c language?
How does selection sort work in c?