Q. What will be the output of sizeof('A')?

  • (A) 1
  • (B) 2
  • (C) 4
  • (D) Depends on compiler
πŸ’¬ Discuss
βœ… Correct Answer: (C) 4
Explanation: 'A' is an int literal in C, so sizeof('A') returns 4 bytes typically.
Explanation by: Mr. Dubey
'A' is an int literal in C, so sizeof('A') returns 4 bytes typically.

πŸ’¬ Discussion


πŸ“Š Question Analytics

πŸ‘οΈ
83
Total Visits
πŸ“½οΈ
1 y ago
Published
πŸŽ–οΈ
Mr. Dubey
Publisher
πŸ“ˆ
97%
Success Rate