πŸ“Š C++
Q. What is the output of the following C++ program?
Code:
#include <iostream>

using namespace std;

int main ( )
{
  static double i;
  i = 15;
  cout << sizeof(i);
 return 0;
}
  • (A) 2
  • (B) 4
  • (C) 8
  • (D) 14
πŸ’¬ Discuss
βœ… Correct Answer: (C) 8

Explanation: Size of type double is 8.

Explanation by: Team MCQ Buddy
Size of type double is 8.

πŸ’¬ Discussion


πŸ“Š Question Analytics

πŸ‘οΈ
217
Total Visits
πŸ“½οΈ
4 y ago
Published
πŸŽ–οΈ
Team MCQ Buddy
Publisher
πŸ“ˆ
82%
Success Rate