Sail E0 Webinar
Question


What is the output of the following program?


1.
#include
2.
using namespace std;
3.
int main ( )
4.
{
5.
static double i;
6.
i = 20;
7.
cout
Options:
A .  4
B .  2
C .  8
D .  garbage
Answer: Option C

The size of the double data type is 8.
$ g++ size1.cpp
$ a.out
8



Was this answer helpful ?
Next Question

Submit Solution

Your email address will not be published. Required fields are marked *

Latest Videos

Latest Test Papers