VARIABLLE AND DATA TYPE | C++ FOUNDATION Question 9

Last Updated :
Discuss
Comments
#include <iostream>
using namespace std;
int main()
{
float f = 3.5;


int b = static_cast<int>(f);


cout << b;
}

4

3

5

2

Share your thoughts in the comments