New course! Every coder should learn Generative AI!
Try a free lesson0
Explain the output of this code?
printf("%c\n",~('C' * -1));
1 Answer
+ 6
~a = -a - 1
so ~('C' * -1) = 'C' - 1 = 'B'
https://www.sololearn.com/learn/4076/?ref=app
printf("%c\n",~('C' * -1));