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 do you mean by dynamic memory allocation in c?
What is the concatenation operator?
What is call by value in c?
Is using exit() the same as using return?
write a c program for swapping two strings using pointer
What are inbuilt functions in c?
What does the c in ctime mean?
Where are the auto variables stored?
What is the stack in c?
How can variables be characterized?
Write a program to know whether the input number is an armstrong number.
What is c basic?
show how link list can be used to repersent the following polynomial i) 5x+2
What are the application of c?
What are lookup tables in c?