what is the difference between postfix and prefix unary
increment operators?
Answer Posted / bhupender
PER FIX UNARY INCREMENT OPERATION IS ++I
POSTT FIX UNARY INCREMENT OPERATION IS i++
WHEN WE USE THIS IN PROGRAM THE RESULT WILL
FOR ++i IS
LIKE TWO VERIABLE INT A=5 AND B=++A+5 THEN
IN RESULT IT SHOWS A =5 BUT B WILL 10(5+5)
BUT IN POST FIX IT
A=5 BUT B= A++ MEANS A+1 AND RESULT FOR B WILL 11
| Is This Answer Correct ? | 2 Yes | 10 No |
Post New Answer View All Answers
How can I send mail from within a c program?
hai iam working in sap sd module for one year and working in lumax ind ltd in desp department but my problem is i have done m.b.a in hr/marketing and working sap sd there is any combination it. can you give right solution of my problem. and what can i do?
What extern c means?
hello freinds next week my interview in reliance,nybody has an idea about it intervew questions..so tell
What is null pointer in c?
What is volatile, register definition in C
Which one would you prefer - a macro or a function?
What are the restrictions of a modulus operator?
Write a program to reverse a linked list in c.
What is huge pointer in c?
How does placing some code lines between the comment symbol help in debugging the code?
When should the volatile modifier be used?
which is conditional construct a) if statement b) switch statement c) while/for d) goto
What are conditional operators in C?
Is a pointer a kind of array?