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
What is the incorrect operator form following list(== , <> , >= , <=) and what is the reason for the answer?
What is modeling?
What does a derived class inherit from a base class a) Only the Public members of the base class b) Only the Protected members of the base class c) Both the Public and the Protected members of the base class d) .c file
Why enum is used in c?
How can I find out if there are characters available for reading?
How many main () function we can have in a project?
Write a Program to find whether the given number or string is palindrome.
main(){char *str;scanf("%s",str);printf("%s",str); }The error in the above program is: a) Variable 'str' is not initialised b) Format control for a string is not %s c) Parameter to scanf is passed by value. It should be an address d) none
What is c method?
What do you mean by command line argument?
Explain enumerated types.
What language is lisp written in?
Can math operations be performed on a void pointer?
What is extern keyword in c?
Between macros and functions,which is better to use and why?