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
a number whose only prime factors are 2,3,5, and 7 is call humble number,,write a program to find and display the nth element in this sequence.. sample input : 2,3,4,11,12,13, and 100.. sample output : the 2nd humble number is 2,the 3rd humble number is 3,the 4th humble number is ,the 11th humble number is 12, the 12th humble number is 14, the 13th humble number is 15, the 100th humble number is 450.
Explain what are bus errors, memory faults, and core dumps?
What does the characters “r” and “w” mean when writing programs that will make use of files?
What are the uses of a pointer?
What is #define size in c?
how is the examination pattern?
What does calloc stand for?
What tq means in chat?
Is multithreading possible in c?
Why are algorithms important in c program?
What is the significance of an algorithm to C programming?
Why c is called free form language?
What are the types of assignment statements?
What is the difference between exit() and _exit() function?
write a program that reads lines(using getline), converts each line to an integer using atoi, and computes the average of all the numbers read. also compute the standard deviation.