Usually a C++ program will be having int main(). I have a simple program to add two numbers and return the value as follows:
int main(int argc, char *argv[])
{
    float num1 = 10.2;
    float num2 = 15.3
    float result = num1+num2;        
    return result;
}
I am getting the result returned as 25. But thee actual result is 25.5. I tried float main(). It is not allowd on C++. How can I return float value??
 
    