using namespace std;
i am getting the output as:
the * represents the blank spaces...
i dont understand why the spaces are coming after the string but while displaying the floating point the blank spaces are coming before the number... and there is also difference in the length of blank spaces
I don't understand. The number of spaces should be different because the "hello" and "3.141567" are different lengths. The spaces are padding within the specified field width of 10, they fill in what the strings do not.