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 are external variables in c?
Is c still used?
What is the use of clrscr?
What is the basic structure of c?
What is the difference between %d and %i?
Why do some versions of toupper act strangely if given an upper-case letter?
How many types of sorting are there in c?
What are loops c?
What is difference between %d and %i in c?
Device an algorithm for weiler-atherton polygon clipping, where the clipping window can be any specified polygon
What are static variables in c?
How does sizeof know array size?
what is the c source code for the below output? 5555555555 4444 4444 333 333 22 22 1 1 22 22 333 333 4444 4444 5555555555
what type of questions arrive in interview over c programming?
How do you print an address?