main()
{
int x=10,y=15;
x=x++;
y=++y;
printf("%d %d\n",x,y);
}
output??
Answer Posted / mazrul
in x=x++;
the above expression is postfix
first we assign 10 into x then increment it by one so value
of x become 11
ic case of
y=++y;
is prefix expression firstly we increment value of y
then assign it to y.
so y become
y=16
Is This Answer Correct ? | 53 Yes | 17 No |
Post New Answer View All Answers
swap 2 numbers without using third variable?
What does it mean when the linker says that _end is undefined?
What are volatile variables in c?
What is the use of c language in real life?
What is pass by reference in c?
What does %c mean in c?
1) write a program to generate 1st n fibonacci prime numbers using Nested if 2) write a program to generate twin prime numbers from m to n using nested if 3) write a program to check whether a given integer is a strong number or not using nested if 4) Write a program to generate prime factors of a given integer using nested if 5)write a program to generate prime numbers from m to n using nested if 6)write a program to generate perfect numbers from m to n using nested if 7)write a program to generate the pallindromes from m to n using neste if 8)write a program to generate armstrong numbers from m to n using nested if 9)write a program to generate strong numbers from m to n using nested if
Explain the difference between strcpy() and memcpy() function?
Stimulate calculator using Switch-case-default statement for two numbers
Write the program that calculates and prints the average of several integers. Assume that the last value read is sentinel 9999.
What is null in c?
Explain how can you avoid including a header more than once?
the process of defining something in terms of itself is called (or) in C it is possible for the functions to call themselves. A function called a) nested function b) void function c) recursive function d) indifinite function
Tell me is null always defined as 0(zero)?
count = 0; for (i = 1;i < = 10; i++);count = count + i; Value of count after execution of the above statements will be a) 0 b) 11 c) 55 d) array