Czemu ten program podaje zły wynik?
#include <iostream>
using namespace std;
int main()
{
long long k;
k=1000000*10000;
cout<<k;
return 0;
}
Czemu ten program podaje zły wynik?
#include <iostream>
using namespace std;
int main()
{
long long k;
k=1000000*10000;
cout<<k;
return 0;
}
k=1000000*10000LL;
#include <iostream>
#include <limits>
int main(){
std::cout << std::numeric_limits<uint64_t>::max() << std::endl;
std::cout << 1000000*10000ULL << std::endl;
return 0;
}