Question: Assume a character variable occupies 1 byte, an integer varial and a double variable occupies 8 bytes. What is the output from the following program?

Assume a character variable occupies 1 byte, an integer varial and a double variable occupies 8 bytes.
What is the output from the following program?
void main()
{
char a='5';
int b=3;
float c=5.0;
double d=7.0;
cout sizeof(char) endl;
}// main
 Assume a character variable occupies 1 byte, an integer varial and

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!