0

Explain the output of this code?

printf("%c\n",~('C' * -1));

7th May 2019, 6:52 PM
Kanchi Sai Jyosthana
Kanchi Sai Jyosthana - avatar
2 Answers
+ 6
~a = -a - 1 so ~('C' * -1) = 'C' - 1 = 'B' https://www.sololearn.com/learn/4076/?ref=app
7th May 2019, 7:10 PM
Mert Yazıcı
Mert Yazıcı - avatar