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 |
What is difference between constant pointer and constant variable?
what does static variable mean?
class foo { public: static int func(const char*& p) const; }; This is illegal, why?
Unsigned char c; for ( c=0;c!=256;c++2) printf("%d",c); No. of times the loop is executed ?
define string ?
Write a program to print "hello world" without using a semicolon?
What is C++
What should malloc(0) do? Return a null pointer or a pointer to 0 bytes?
Is main is a keyword in c?
Implement bit Array in C.
const char * char * const What is the differnce between the above tow?.
fun(int x) { if(x > 0) fun(x/2); printf("%d", x); } above function is called as: fun(10); what will it print? }