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 is ponter?

1326


What are the back slash character constants or escape sequence charactersavailable in c?

1230


What does typedef struct mean?

1164


Can we change the value of constant variable in c?

1113


What is 02d in c?

1111


Write a C program in Fibonacci series.

1135


How to write a program for machine which is connected with server for that server automatically wants to catch the time for user of that machine?

2139


Explain which function in c can be used to append a string to another string?

1138


Why pointers are used?

1116


Why pointers are used in c?

1070


What is the difference between malloc() and calloc()?

1980


what are the program that using a two dimensional array that list the odd numbers and even numbers separately in a given 10 inputs values

1755


How can I recover the file name given an open stream or file descriptor?

1140


Why c is known as a mother language?

1130


Does c have function or method?

1061