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;
}
β
Correct Answer: (C)
8
Explanation: Size of type double is 8.