what is the difference between postfix and prefix unary
increment operators?
Answer Posted / tarun kumar
In prefix operator In postfix operator
#include<iostream.h> #include<iostream.h>
#include<coino.h> #include<coino.h>
void main() void main()
{ {
int i=10; int i=10;
int j=++i; int j=i++;
cout<<j; cout<<j;
getch(); getch();
} }
OUTPUT:11 OUPUT:10
| Is This Answer Correct ? | 3 Yes | 1 No |
Post New Answer View All Answers
What will be your course of action for a push operation?
What is a program flowchart and how does it help in writing a program?
What is c mainly used for?
Give differences between - new and malloc() , delete and free() ?
What are derived data types in c?
How is a null pointer different from a dangling pointer?
Is there a way to switch on strings?
What is .obj file in c?
What is bin sh c?
What are # preprocessor operator in c?
What is pass by reference in c?
How can I make sure that my program is the only one accessing a file?
Explain the difference between the local variable and global variable in c?
What does calloc stand for?
What is static volatile in c?