+ 1

Explain the code

Help

12th Mar 2020, 12:09 PM
Ajith
Ajith - avatar
4 Respuestas
+ 4
It outputs a character before 'c' which is 'b'. 'c' in ascii code has value of 99. 'c'*-1=-99 -99 in binary form is: 10011101. ~(-99) is : 01100010 = 98 98 in ascii code is 'b' in char form.
12th Mar 2020, 12:52 PM
Qasem
+ 1
Printf("%c \n",~('c' * -1));
12th Mar 2020, 12:10 PM
Ajith
Ajith - avatar
+ 1
Thank you
12th Mar 2020, 12:55 PM
Ajith
Ajith - avatar
0
Explain that line
12th Mar 2020, 12:18 PM
Ajith
Ajith - avatar