Horje
c++ program to find size of int, float, double and char Code Example
c++ program to find size of int, float, double and char
#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;
}




Cpp

Related
jquery datepicker default date not working Code Example jquery datepicker default date not working Code Example
ex: java script Code Example ex: java script Code Example
transpose function example in c++ Code Example transpose function example in c++ Code Example
QT form doesn't take changes Code Example QT form doesn't take changes Code Example
what is stdoutread in c++ Code Example what is stdoutread in c++ Code Example

Type:
Code Example
Category:
Coding
Sub Category:
Code Example
Uploaded by:
Admin
Views:
9