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 ?    37 Yes 8 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What is a class c rental property?

593


How can you increase the size of a dynamically allocated array?

632


we need to calculating INCOME TAX for the person. The INCOME TAX is as follows:- First $10000/- of income : 4% tax Next $10000/- of income : 8% tax Next $10000/- of income : 11.5% tax above $10, 00,00/- : 15% tax What is the Solution of this Question ?

791


find the output? void r(int a[],int c, int n) { if(c>n) { a[c]=a[c]+c; r(a,++c,n); r(a,++c,n); } } int main() { int i,a[5]={0}; r(a,0,5); for(i=0;i<5;i++) printf("\n %d",a[i]); getch(); }

1843


Function which gives a pointer to a binary trees const an integer value at each code, return function of all the nodes in binary tree.?

607






Write a program to check armstrong number in c?

620


What is the need of structure in c?

546


Explain the properties of union.

595


What is the difference between fread and fwrite function?

624


what is bit rate & baud rate? plz give wave forms

1499


In a header file whether functions are declared or defined?

617


Can true be a variable name in c?

547


Do you know the purpose of 'register' keyword?

630


what is the role you expect in software industry?

1639


shorting algorithmS

1784