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...

Difference between prefix and postfix forms of the
++operator?

Answer Posted / uday ray

They behave differently when they are used in expressions on
the right hand side of an assignment statement. A prefix
operator first adds 1 to the operand and the result is
assigned to the variable on left. On the other hand, a post
fix operator first assign the value to the variable on left
and then increments the operands.

Is This Answer Correct ?    5 Yes 2 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What is the generic function?

928


Can we use switch statement with strings?

991


What restrictions are placed on method overloading in java programming?

1004


What is a variable analysis?

1031


What is difference between adapter class and listener?

970


What is meant by memory leak?

981


What is difference between public static and void?

939


How do you declare an array that will hold more than 64KB of data?

1192


Can an anonymous class be declared as implementing an interface and extending a class in java programming?

1169


Explain serialization and deserialization in java?

942


What causes memory leak in java?

886


What happens when you invoke a thread’s interrupt method while it is sleeping or waiting?

922


What is return in java?

909


What is a class object?

921


Is hashset sorted in java?

1118