Hi guys, this might be some fundamental stuff but I just could not get around it and would appreciate some help.
1 2 3 4 5 6
int number = 0
char *string = "30.56";
number = string;
cout << string;
So my question for this particular questions is to why when I cout my variable 'number', it only gives me 30 instead of the full 30.56. Thanks in advance for anyone taking their time replying to this. :)