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
What is a class c rental property?
How can you increase the size of a dynamically allocated array?
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 ?
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(); }
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.?
Write a program to check armstrong number in c?
What is the need of structure in c?
Explain the properties of union.
What is the difference between fread and fwrite function?
what is bit rate & baud rate? plz give wave forms
In a header file whether functions are declared or defined?
Can true be a variable name in c?
Do you know the purpose of 'register' keyword?
what is the role you expect in software industry?
shorting algorithmS