What will be the output of the following code?

#include
using namespace std;

int main() {
    float f = 3.14;
    int i = static_cast(f);
    cout << i;
    return 0;
}

1
3
2
3.1
3
0
4
More than one of the above
5
None of the above

Sponsored

hivanix.in

Visit

This quiz is brought to you by hivanix.in

🌐 Web App Development

Quick Navigation