main()
{
int x=20,y=35;
x = y++ + x++;
y = ++y + ++x;
printf("%d %d\n",x,y);
}
what is the output?
Answer Posted / fazlur rahaman naik
x = 57 and y = 94.
because the value of x = y++ + x++(35 + 20) is 55 and then
it incremented here x++ i.e.56 and the value of y = 36 and
then the value of y = ++y + ++x(57 + 37) = 94.
| Is This Answer Correct ? | 38 Yes | 8 No |
Post New Answer View All Answers
What is c standard library?
Can we declare a function inside a function in c?
What is meant by recursion?
What is the difference between int main and void main in c?
What is #line used for?
What is main () in c language?
Why doesn't C support function overloading?
main() { printf("hello"); fork(); }
pgm to find any error in linklist(in single linklist check whether any node points any of previous nodes instead of next node)
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 []);
What is array of structure in c?
What is the best way of making my program efficient?
What is a program flowchart and explain how does it help in writing a program?
What is a program flowchart and how does it help in writing a program?
What is the maximum length of an identifier?