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 |
How to write a program for swapping two strings without using 3rd variable and without using string functions.
A SIMPLE PROGRAM OF GRAPHICS AND THEIR OUTPUT I WANT SEE WAHAT OUTOUT OF GRAPHICS PROGRAM
Who is the founder of c language?
what does the following function print? func(int i) { if(i%2)return 0; eale return 1; } main() { int =3; i=func(i); i=func(i); printf("%d",i);}
What is true about the following C Functions a.Need not return any value b.Should always return an integer c.Should always return a float d.Should always return more than one value.
Explain the difference between call by value and call by reference in c language?
Can you define which header file to include at compile time?
What is s or c?
without using arithmatic operator convert an intger variable x into x+1
Can a variable be both constant and volatile?
Software Interview Questions
program in c to print 1 to 100 without using loop