Horje
how to find size of int in c++ Code Example
c++ length of int
unsigned int number_of_digits = 0;

do {
     ++number_of_digits; 
     n /= base;
} while (n);
how to find size of int in c++
#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
const char * to std::wstring Code Example const char * to std::wstring Code Example
Reverse Square Root Code Example Reverse Square Root Code Example
How To Calculate 1+1 in c++ Code Example How To Calculate 1+1 in c++ Code Example
api authentication Code Example api authentication Code Example
what is blob in computer vision Code Example what is blob in computer vision Code Example

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