Golgappa.net | Golgappa.org | BagIndia.net | BodyIndia.Com | CabIndia.net | CarsBikes.net | CarsBikes.org | CashIndia.net | ConsumerIndia.net | CookingIndia.net | DataIndia.net | DealIndia.net | EmailIndia.net | FirstTablet.com | FirstTourist.com | ForsaleIndia.net | IndiaBody.Com | IndiaCab.net | IndiaCash.net | IndiaModel.net | KidForum.net | OfficeIndia.net | PaysIndia.com | RestaurantIndia.net | RestaurantsIndia.net | SaleForum.net | SellForum.net | SoldIndia.com | StarIndia.net | TomatoCab.com | TomatoCabs.com | TownIndia.com
Interested to Buy Any Domain ? << Click Here >> for more details...

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


Please Help Members By Posting Answers For Below Questions

What will be your course of action for a push operation?

1066


What is a program flowchart and how does it help in writing a program?

1097


What is c mainly used for?

1008


Give differences between - new and malloc() , delete and free() ?

1059


What are derived data types in c?

1023


How is a null pointer different from a dangling pointer?

983


Is there a way to switch on strings?

1043


What is .obj file in c?

1032


What is bin sh c?

1002


What are # preprocessor operator in c?

1061


What is pass by reference in c?

1158


How can I make sure that my program is the only one accessing a file?

1212


Explain the difference between the local variable and global variable in c?

1035


What does calloc stand for?

1102


What is static volatile in c?

989