TopicsC ProgrammingQuestionProgrammingHardGATE CS · Campus placementsint n = 0; reading the expression as C does: What is the value of ~5 + 1?A. -5B. 9C. -6D. 4Correct answer: A. -5~5 is -6 in two's complement, since ~x = -x - 1 for signed integers. Adding 1 gives -5. Practise more C Programming questionsC Programming: notes and key pointsMore C Programming questionsint n = 0; while (n++ < 3) ; What is n after the loop?unsigned char x = 100; x += 200; What is x?int x = 12; x &= x - 1; What is x?What does printf("%d", sizeof(int) > sizeof(char)) print?char p = "abc" + 1; printf("%c", p); What is printed?int x = 2; int p = &x; p = p p; What is x?Exams that ask this topicTCS NQT mock test and practiceInfosys (SE / SP / DSE) mock test and practiceWipro (Elite NTH / Turbo) mock test and practiceAccenture (ASE) mock test and practiceCognizant GenC mock test and practiceCapgemini mock test and practice