main()
{
int x=20,y=35;
x = y++ + x++;
y = ++y + ++x;
printf("%d %d\n",x,y);
}
Answer Posted / jaya prakash
57 94
{x=y++ + x++;}
equal to
{
x=y+x;//35+20
x++; //56
y++; //36
}
y=++y + ++x;
equal to
{
++y;//37
++x;//57
y=y+x;//37+57
}
So x=57
y=94
| Is This Answer Correct ? | 223 Yes | 59 No |
Post New Answer View All Answers
Explain what is a program flowchart and explain how does it help in writing a program?
When I set a float variable to, say, 3.1, why is printf printing it as 3.0999999?
What are the different types of control structures in programming?
void main(){ int a; a=1; while(a-->=1) while(a-->=0); printf("%d",a); }
Write a program in "C" to calculate the root of a quadratic equation ax^2+bx+c=0, where the value of a,b & c are known.
i have to apply for rbi before that i need to know the the syllabus for the entrance questions. whethet it may be aps or techinical
Why do we write return 0 in c?
What does & mean in scanf?
hi friends how r u as soon in satyam my interview is start but i m very confusued ta wat i do plz help me frndz wat can i do plz tell me some question and answers related with "C" which r asked in the interview .
Given an array of 1s and 0s arrange the 1s together and 0s together in a single scan of the array. Optimize the boundary conditions?
What is character set?
When should a type cast not be used?
How do you list files in a directory?
What is a header file?
All technical questions