main()
{
int x=20,y=35;
x = y++ + x++;
y = ++y + ++x;
printf("%d %d\n",x,y);
}
what is the output?
Answer Posted / manishsoni
here first in
x = y++ + x++;
x=35+20;
x=55;
then x is incresed by 1;
x=56;
y=36
y=++y + ++x;
y=++36 + ++56;
y=37+57;
y=94;
x=57;
now the value of x = 57.
therefore,after performing all operatioins we get,
x==57 And y==94....
Is This Answer Correct ? | 6 Yes | 1 No |
Post New Answer View All Answers
Can static variables be declared in a header file?
#include
What is the use of parallelize in spark?
Can main () be called recursively?
What are the data types present in c?
Where can I get an ansi-compatible lint?
Please send me WIPRO technical question to my mail ID.. its nisha_g28@yahoo.com please its urgent
What is stack in c?
Which is better between malloc and calloc?
Explain what is the advantage of a random access file?
For what purpose null pointer used?
What is the function of volatile in c language?
Explain what is meant by high-order and low-order bytes?
write a program that reads lines(using getline), converts each line to an integer using atoi, and computes the average of all the numbers read. also compute the standard deviation.
a formula,a series of steps,or well defined set of rules for solving a problem a) algorithem b) program c) erdiagram d) compiler