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 / bhupender

PER FIX UNARY INCREMENT OPERATION IS ++I
POSTT FIX UNARY INCREMENT OPERATION IS i++
WHEN WE USE THIS IN PROGRAM THE RESULT WILL
FOR ++i IS

LIKE TWO VERIABLE INT A=5 AND B=++A+5 THEN
IN RESULT IT SHOWS A =5 BUT B WILL 10(5+5)
BUT IN POST FIX IT
A=5 BUT B= A++ MEANS A+1 AND RESULT FOR B WILL 11

Is This Answer Correct ?    2 Yes 10 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What is the difference between a string copy (strcpy) and a memory copy (memcpy)? When should each be used?

1101


What are the different types of endless loops?

1058


what is a constant pointer in C

1130


what is the syallabus of computer science students in group- 1?

2306


How can I get random integers in a certain range?

1045


any C program contains only one function, it must be a) void () b) main () c) message () d) abc ()

1108


Is int a keyword in c?

954


if a is an integer variable, a=5/2; will return a value a) 2.5 b) 3 c) 2 d) 0

1935


Are bit fields portable?

1146


Why is c faster?

1081


Differentiate between static and dynamic modeling.

1082


How can I determine whether a machines byte order is big-endian or little-endian?

1044


Explain how do you view the path?

1146


What is the difference between a function and a method in c?

1068


How do I copy files?

1038