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 |
How do you search data in a data file using random access method?
WAP to find that given no is small or capital
Write a Program to print this triangle: * ** * **** * ****** * ******** * ********** use two nested loops.
12 Answers MIT, TCS,
Give the Output : * * * * * * * * * *
Write a c program to Find the name that you entered is male name or female name? Such as Sunjay is name of male and Payal is name of female
Why main is not a keyword in c?
how to swap 2 numbers within a single statement?
Do you know what is a programing language ?
5 Write an Algorithm to find the maximum and minimum items in a set of ‘n’ element.
What does & mean in scanf?
fun(int x) { if(x > 0) fun(x/2); printf("%d", x); } above function is called as: fun(10); what will it print? }
Hello. How to write a C program to check and display president party like if i type in the console "biden" and hit enter the output shoud be : "biden is democrat" and if i type "trump" and hit enter the output shoud be: "trump is republican"