what is the difference between postfix and prefix unary
increment operators?

Answer Posted / rukmanee

In prefix operator,the value of the operand increase by one
and then assign the new value to that operand and print
it.In postfix operator,the value of the operand is assigned
at first and then increment it's value by one.
This is the difference between postfix and prefix unary
increment operators.

Is This Answer Correct ?    8 Yes 1 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

Are there namespaces in c?

568


How can I manipulate strings of multibyte characters?

639


Is there anything like an ifdef for typedefs?

702


How important is structure in life?

590


Explain what is the difference between text files and binary files?

617






Explain what is the concatenation operator?

628


How do you redirect a standard stream?

624


1234554321 1234 4321 123 321 12 21 1 1 12 21 123 321 1234 4321 1234554321

3143


Why is c called a mid-level programming language?

729


How pointer is different from array?

579


What is a example of a variable?

553


How would you rename a function in C?

622


What is the difference between c and python?

586


What is null pointer constant?

594


How can you find the day of the week given the date?

617