main()
{
int x=10,y=15;
x=x++;
y=++y;
printf("%d %d\n",x,y);
}
output??
Answers were Sorted based on User's Feedback
Answer / sateesndaruh varma ba
x=x++ it means the x value is first assignto x and then increment by 1
so here in this given value of x=10
it become" x= 11" in output
y=++y it means pre increment so first y value is incremented and than it will assignto y
finally y=16
| Is This Answer Correct ? | 2 Yes | 5 No |
Answer / ankit
11 16 is correct ..
value of x is incremented and is saved in memeory and at
the time of display it will be 11,
as in case of y it will be incremented and will store the
incremented value to be displayed for y.
| Is This Answer Correct ? | 0 Yes | 3 No |
What is ## preprocessor operator in c?
What are register variables in c?
main() { char *p; p="Hello"; printf("%c\n",*&*p); }
What is difference between union and structure in c?
what are the files which are automatically opened when a c file is executed?
Differentiate between ordinary variable and pointer in c.
Write a C program to check a number even or odd, without using any relational, arithmetic operator and any loops.
main() { char *p1="Name"; char *p2; p2=(char *)malloc(20); while(*p2++=*p1++); printf("%s\n",p2); } what is the output?
7 Answers AMCAT, HCL, Ramco, Zycus Infotech,
Explain what happens if you free a pointer twice?
write a program to find a given no. is divisible by 3 or not without using any arthimetic operators?
Whats wrong with the following function char *string() { char *text[20]; strcpy(text,"Hello world"); return text; }
how much salary u want ? why u join in our company? your domain is core sector why u prefer software ?