How Does Increment Operators Work...??
CAN ANY1 PLZ TELL ME HOW INCREMENT & DECREMENT OPERATORS WORK IN C AS WELL AS IN LINUX IF KNOWN....!!
AS FAR AS I KNWO THERE ARE POST & PRE INCREMENT/DECREMENT OPERATORS :
I M GETTING DIFF RESULTS WHEN CALCULATED MANUALLY & DIFFERENT WHEN PROGRAMMED IN C ....!!
SUPPOSE FOR EX :
a = 2b + (- - b) + 3(b++) +b
if b = 3
what is ans of b
manually ans is = 6 + 2 + (3*2) + 3 = 17
but when programmed ans is 19 yyyyyyy..........???:confused:
nt only in this case in many cases it happens i want to know the priorities which comes 1st and all ThX in adv....!!