What will be the output of
x++ + ++x?
Answer Posted / shashi shekhar
In this type of question the operation done from right side of the expression.Here we can see two types of increments pre and post increment,in post first the value assigned then increment but in pre first the value is incressed then the value assigned.
For example if x is initialized with a value
"1" then the this expression gives the output "4".
| Is This Answer Correct ? | 4 Yes | 2 No |
Post New Answer View All Answers
What is scope of variable in c?
Can we assign integer value to char in c?
How can I find out how much free space is available on disk?
List the difference between a 'copy constructor' and a 'assignment operator' in C?
What is the difference between functions getch() and getche()?
What is a structural principle?
What do you mean by a local block?
Why can arithmetic operations not be performed on void pointers?
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
What are different types of variables in c?
What's a good way to check for "close enough" floating-point equality?
Why do we need a structure?
Describe the header file and its usage in c programming?
Can I use base-2 constants (something like 0b101010)? Is there a printf format for binary?
Which function in C can be used to append a string to another string?