main()
{
int x=20,y=35;
x = y++ + x++;
y = ++y + ++x;
printf("%d %d\n",x,y);
}
Answer Posted / manju
while calculating the x value,x & y values are post
incremented.So the values of x & y are added and then
incremented i.e. x=56,y=36
while calculating the y value,x & y values are
preincremtned,so x & y values are incremented and then
added i.e. x=57,y=37.
so x=57
y=57+37=94.
Is This Answer Correct ? | 58 Yes | 17 No |
Post New Answer View All Answers
What is the modulus operator?
while loop contains parts a) initialisation, evalution of an expression,increment /decrement b) initialisation, increment/decrement c) condition evalution d) none of the above
Explain what is the difference between functions getch() and getche()?
What is the difference between #include and #include 'file' ?
What is the difference between typedef struct and struct?
How do I copy files?
What is formal argument?
write a c program in such a way that if we enter the today date the output should be next day's date.
what is different between auto and local static? why should we use local static?
Which programming language is best for getting job 2020?
number of times a digit is present in a number
Why we write conio h in c?
Create a structure to specify data on students given below: Roll number, Name, Department, Course, Year of joining Assume that there are not more than 450 students in the college. 1.write a function to print names of all students who joined in a particular year 2.write a function to print the data of a student whose roll number is given
What is the process of writing the null pointer?
What is header file definition?