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

what are the advantages of a macro over a function?

656


What is the difference between array and linked list in c?

613


What is a node in c?

560


How can you increase the allowable number of simultaneously open files?

605


What is function prototype in c with example?

587






List the different types of c tokens?

634


Can we assign string to char pointer?

600


How can I manipulate individual bits?

615


What is the difference between malloc() and calloc() function in c language?

614


How a string is stored in c?

597


What does the message "automatic aggregate intialization is an ansi feature" mean?

704


What is switch in c?

658


pgm to find number of words starting with capital letters in a file(additional memory usage not allowed)(if a word starting with capital also next letter in word is capital cann't be counted twice)

1872


can any one please explain, how can i access hard disk(physical address)? it is possible by the use of far,near or huge pointer? if yes then please explain......

1419


What is the general form of function in c?

621