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 ?    219 Yes 53 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

any "C" function by default returns an a) int value b) float value c) char value d) a & b

656


What is a function in c?

561


How many types of arrays are there in c?

585


In a byte, what is the maximum decimal number that you can accommodate?

613


How can I find out the size of a file, prior to reading it in?

609






What is null in c?

588


void main(){ int a; a=1; while(a-->=1) while(a-->=0); printf("%d",a); }

1244


Is there any algorithm to search a string in link list in the minimum time?(please do not suggest the usual method of traversing the link list)

1854


When the macros gets expanded?

772


What is the difference between text files and binary files?

663


What is the use of the function in c?

588


What is a scope resolution operator in c?

737


Are pointers integers in c?

598


Given a valid 24 hour format time find the combination of the value and write a program ,do not hard the value and if any other inputs provided should work with the logic implemented Input: 11:30 Output: 13:10 Input: 18:25 Output: 21:58

1107


Write a program to find factorial of a number using recursive function.

632