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 macro execution is faster than function ?
what does data structure mean?
What is a structure and why it is used?
Why is sizeof () an operator and not a function?
What are the different types of data structures in c?
Why is c so popular?
what will be the output of this program? #include<stdio.h> #define cube(x) x*x*x void main() { int i,j=5; i=cube(j+3); printf("i=%d",i); }
Write a C++ program to give the number of days in each month according to what the user entered. example: the user enters June the program must count number of days from January up to June
Write a C/C++ program that connects to a MySQL server and checks intrusion attempts every 5 minutes. If an intrusion attempt is detected beep the internal speaker to alert the administrator. A high number of aborted connects to MySQL at a point in time may be used as a basis of an intrusion.
code snippet for creating a pyramids triangle ex 1 2 2 3 3 3
what is the purpose of the code, and is there any problem with the code? int f( int n, int l, int r ) { return (n << l) >> r; }
what is meant by the "equivalence of pointers and arrays" in C?