Write a c++ program to find size of fundamental data types. - Pratik Ghelani

Pratik Ghelani

Breaking

Sunday, January 20, 2019

Write a c++ program to find size of fundamental data types.

Program:-

#include<iostream> 
using namespace std; 
int main() 

    cout<<"Size of Integer:"<<sizeof(int)<<endl;
    cout<<"Size of Float:"<<sizeof(float)<<endl; 
    cout<<"Size of Character:"<<sizeof(char)<<endl;
    cout<<"Size of Double:"<<sizeof(double)<<endl; 
    

}

Output:-




No comments:

Post a Comment