main()
{
int x=10,y=15;
x=x++;
y=++y;
printf("%d %d\n",x,y);
}
output??
Answer Posted / gita
the answer is 10,16.
because x=x++;
means first assign after that that is incremented.
in case of y=++y;
first increment operation is performed. after that assigned.
| Is This Answer Correct ? | 18 Yes | 4 No |
Post New Answer View All Answers
write a program fibonacci series and palindrome program in c
Find the second largest element in an array with minimum no of comparisons and give the minimum no of comparisons needed on an array of size N to do the same.
Explain the ternary tree?
Can a pointer be null?
What are the advantages of external class?
What does the function toupper() do?
Write a program to generate random numbers in c?
What is a method in c?
Is it valid to address one element beyond the end of an array?
Explain the meaning of keyword 'extern' in a function declaration.
Which of the following operators is incorrect and why? ( >=, <=, <>, ==)
Write a program to print all permutations of a given string.
Can you please explain the difference between strcpy() and memcpy() function?
Explain how do you print an address?
What is time complexity c?