2 3 4 5 6 7 8 9 10 Consider the below program: #include <iostream> using namespace std; class Hall { public: double cost; }; int main() { Hall hall; hall.cost=10000.50; cout<<hall.cost; return 0; } What will be the output of above coding? code example
Example: 2 3 4 5 6 7 8 9 10 Consider the below program: #include using namespace std; class Hall { public: double cost; }; int main() { Hall hall; hall.cost=10000.50; cout<
cpp by Drab Dragonfly
on Apr 01 2021 Donate
Consider the below program:
#include <iostream>
using namespace std;
class Hall
{
public:
double cost;
};
int main()
{
Hall hall;
hall.cost=10000.50;
cout<<hall.cost;
return 0;
}
What will be the output of above coding?
answer must be 10000.5