main()
{
int x=10,y=15;
x=x++;
y=++y;
printf("%d %d\n",x,y);
}
output??
Answer Posted / 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 |
Post New Answer View All Answers
What is the difference between struct and typedef struct in c?
Why c is procedure oriented?
write a program using linked list in which each node consists of following information. Name[30] Branch Rollno Telephone no i) Write the program to add information of students in linked list
What is a global variable in c?
What are type modifiers in c?
What do you mean by a sequential access file?
Explain what’s a signal? Explain what do I use signals for?
What is ambagious result in C? explain with an example.
What is spark map function?
What is preprocessor with example?
Where local variables are stored in c?
which is conditional construct a) if statement b) switch statement c) while/for d) goto
What are different types of variables in c?
.find the output of the following program? char*myfunc(char*ptr) { ptr +=3; return (ptr); } int main() { char*x,*y; x="HELLO"; y=myfunc(x); printf("y = %s ",y); return 0; }
Is using exit() the same as using return?