Horje
static_cast c++ Code Example
static_cast c++
#include <iostream>
using namespace std;
int main()
{
    float f = 3.5;
    int a = f; // this is how you do in C
    int b = static_cast<int>(f);
    cout << b;
}




Cpp

Related
ifstream Code Example ifstream Code Example
c++  sort Code Example c++ sort Code Example
how to make a pointer point to a the last value in an array Code Example how to make a pointer point to a the last value in an array Code Example
c++ namespace example Code Example c++ namespace example Code Example
sizeof’ on array function parameter ‘arr’ will return size of ‘int*’ [-Wsizeof-array-argument] Code Example sizeof’ on array function parameter ‘arr’ will return size of ‘int*’ [-Wsizeof-array-argument] Code Example

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