why there is minus(-) in unary operator but not plus(+)..?? | Sololearn: Learn to code for FREE!
Nouvelle formation ! Tous les codeurs devraient apprendre l'IA générative !
Essayez une leçon gratuite
0

why there is minus(-) in unary operator but not plus(+)..??

programming in c++

16th Jul 2020, 7:44 AM
Maviya
3 Réponses
0
oh! Gotcha
16th Jul 2020, 8:11 AM
Ćheyat
Ćheyat - avatar
0
Because +5 is same as 5. No difference. Variable x is same as +x But -x makes negative value.
16th Jul 2020, 8:18 AM
Jayakrishna 🇮🇳
0
plz explain clearly i can't understand it
16th Jul 2020, 2:23 PM
Maviya