• Cursos
  • Compilador de Código
  • Discutir
  • Preços
  • Teams
Menu
0

Explain the output of this code?

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

cprintf
7th May 2019, 6:52 PM
Kanchi Sai Jyosthana
Kanchi Sai Jyosthana - avatar
2 Respostas
+ 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

Costuma ter perguntas como essa?

Aprenda de maneira mais eficiente, de graça:

  • Introdução ao Python

    7.1M de alunos

  • Introdução ao Java

    4.7M de alunos

  • Introdução ao C

    1.5M alunos

  • Introdução ao HTML

    7.5M alunos

Ver todos os cursos
Quente hoje
Is this realistic enough?
2 Votes
"Which is harder to master — Machine Learning or Cybersecurity? And why?"
1 Votes
Need friends
0 Votes
"What’s the best way to combine creativity and coding? Can storytelling improve web apps?"
1 Votes
Web Development
0 Votes
Cybersecurity techies
3 Votes
Please complete this code.
0 Votes
Can someone please explain python for me
0 Votes
Can u learn multiple language at the same time, without misplacing the formats of each with the other
0 Votes
What's wrong with code?
0 Votes