mcqs bucket

  • MCQs Bucket | Program Write a Program in C++ to Find Size of int, float, double and char in Your System

    mcqsbucket

      Best guide for exams of all nature, Competitive exams and Interviews

Write a Program in C++ to Find Size of int, float, double and char in Your System

	 
                                 		

#include <iostream>
using namespace std;

int main()
{
cout << "Size of char: " << sizeof(char) << " byte" << endl;
cout << "Size of int: " << sizeof(int) << " bytes" << endl;
cout << "Size of float: " << sizeof(float) << " bytes" << endl;
cout << "Size of double: " << sizeof(double) << " bytes" << endl;

return 0;
}