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
explain what is fifo?
I need a help with a program: Write a C program that uses data input in determining the whole of points A and a whole of circles B. Find two points in A so that the line which passes through them, cut through the maximum number of circles.
Explain how can you tell whether two strings are the same?
What are the primitive data types in c?
Write the syntax and purpose of a switch statement in C.
Why are algorithms important in c program?
How can I remove the trailing spaces from a string?
Differentiate between #include<...> and #include '...'
Why is structure important for a child?
.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; }
What is the c value paradox and how is it explained?
This is a variation of the call_me function in the previous question:call_me (myvar)int *myvar;{ *myvar += 5; }The correct way to call this function from main() will be a) call_me(myvar) b) call_me(*myvar) c) call_me(&myvar) d) expanded memory
What does %c mean in c?
is it possible to create your own header files?
What are preprocessor directives in c?