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
What is the right type to use for boolean values in c? Is there a standard type? Should I use #defines or enums for the true and false values?
What is define directive?
What does sizeof return c?
Give a one-line C expression to test whether a number is a power of 2. [No loops allowed - it's a simple test.]
How do you define CONSTANT in C?
What is a struct c#?
Explain how do you print an address?
What do you mean by a sequential access file?
What is memory leak in c?
Explain pointers in c programming?
Do pointers take up memory?
Is it possible to pass an entire structure to functions?
What are valid operations on pointers?
What is the difference between struct and union in C?
code for find determinent of amatrix