Hello. Struggling with getting my head around data types. Clearly a newcomers question, but why does this produce 4.2*10^9?
Code:// playing with variables #include <iostream> using namespace std; int main() { int a(2); unsigned int b(3); float result; result=a-b; cout<<result; return 0; }
Thanks. Feel free to insult the sheer ignorance.