πŸ“Š C++
Q. What is the output of the following C++ code?
Code:
#include <stdio.h>
int main()
{
  char x = '\012';
   
  printf("%d", x);
  return 0;
}
  • (A) 0
  • (B) 10
  • (C) 12
  • (D) Compiler error
πŸ’¬ Discuss
βœ… Correct Answer: (B) 10

You must be Logged in to update hint/solution

πŸ’¬ Discussion


πŸ“Š Question Analytics

πŸ‘οΈ
211
Total Visits
πŸ“½οΈ
4 y ago
Published
πŸŽ–οΈ
Ram Sharma
Publisher
πŸ“ˆ
95%
Success Rate