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 |
Are negative numbers true in c?
Write a program for Overriding.
What is conio h in c?
main() { int i,j,A; for(A=-1;A<=1;A++) prinf("%d\t",!!A); }
Hai sir, I had planned to write the NIC scientific engineer exam , plz post the sample question......
write aprogram for There is a mobile keypad with numbers 0-9 and alphabets on it. take input of 7 keys and then form a word from the alphabets present on those keys.
1 Answers iGate, Shashi, Source Bits, Subex,
how to find string length wihtout using c function?
What is sizeof c?
difference between string and array?
Is c# a good language?
int arr[] = {1,2,3,4} int *ptr=arr; *(arr+3) = *++ptr + *ptr++; Final contents of arr[]
Write a C program in Fibonacci series.