what is meant by post decrement
Answers
Answered by
4
Answer:
A decrement operation that takes place after evaluation of the expression that contains the variable being decremented
Answered by
2
ᴘᴏsᴛ ᴅᴇᴄʀᴇᴍᴇɴᴛ ᴏᴘᴇʀᴀᴛᴏʀ ɪs ᴜsᴇᴅ ᴛᴏ ᴅᴇᴄʀᴇᴍᴇɴᴛ ᴠᴀʀɪᴀʙʟᴇ ᴠᴀʟᴜᴇ ʙʏ ᴀғᴛᴇʀ ᴀssɪɢɴɪɴɢ ᴛʜᴇ ᴠᴀʟᴜᴇ ᴛᴏ ᴛʜᴇ ᴠᴀʀɪᴀʙʟᴇ.
_____________________________
Decrement operator decrease the value by one. Pre-increment (++i) − Before assigning the value to the variable, the value is incremented by one. Post-increment (i++) − After assigning the value to the variable, the value is incremented. ... variable_name − Any name of the variable given by user.
_____________________________
Similar questions