خرید بک لینک

gameover.blog.ir

#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;

    retu 0;

}

Output

Size of char: 1 byte
Size of int: 4 bytes
Size of float: 4 bytes
Size of double: 8 bytes

برچسب: نویسنده: ایلیا حیدری تاريخ: شنبه 17 مهر 1395 ساعت: 2:20

صفحه بندی