What will be the output of
x++ + ++x?
Answer Posted / sujan
let x=1,here it starts with x++, so first x takes value 1 and then it increments to 2.. later ++x.. here x is incremented first i.e.,x=3 and then added to previous value..ie., 1+3
o/p is 4
| Is This Answer Correct ? | 1 Yes | 1 No |
Post New Answer View All Answers
How many types of arrays are there in c?
Explain how do you use a pointer to a function?
What are actual arguments?
What are the scope of static variables?
What is pivot in c?
What is pointer in c?
Write a program to show the change in position of a cursor using c
Explain setjmp()?
How can I read and write comma-delimited text?
How do you do dynamic memory allocation in C applications?
Why is main function so important?
hi, which software companys will take,if d candidate's % is jst 55%?
Between macros and functions,which is better to use and why?
explain what is an endless loop?
Differentiate Source Codes from Object Codes