void main()
{
int x=25,y=32;
clrscr();
x=x++ + y++;
y=++x + ++y;
printf("%d%d",x,y);
}
Answers were Sorted based on User's Feedback
Answer / myfriend_shankar
ans is 59 93
because
void main()
{
1.x=x++ + y++; 25+32 (bcoz of x=x++ so) 26+32=58
2.y=++x + ++y; 59+34=93(after this x=59)
(becoz of x=x++ the last value 59 be the x value)
Is This Answer Correct ? | 13 Yes | 1 No |
if you put the values x=25 and y=32 so both values will be simply added because there will proceed clrscr() command .
so write answer is 57 ,61.
Is This Answer Correct ? | 11 Yes | 8 No |
code for reverse alternate words from astring
How can I read a directory in a c program?
What is echo in c programming?
Explain what standard functions are available to manipulate strings?
What is data type long in c?
Find greatest number out of 10 number without using loop.
what will be the output of this program? void main() { int a[]={5,10,15}; int i=0,num; num=a[++i] + ++i +(++i); printf("%d",num); }
what is the use of getch() function in C program.. difference b/w getch() and getche()??
29 Answers HCL, IBM, Infosys, TCS, Wipro,
what are enumerations in C
what is void pointer?
code snippet for creating a pyramids triangle ex 1 2 2 3 3 3
can we declare a variable in different scopes with different data types? answer in detail