python (65.1k questions)
javascript (44.2k questions)
reactjs (22.7k questions)
java (20.8k questions)
c# (17.4k questions)
html (16.3k questions)
r (13.7k questions)
android (12.9k questions)
Java Long to int conversion skipping gaps between longs
I'm working on a school project where I'm building a geographical map from nodes.
These nodes are loaded from an XML format from OpenStreetMap.org.
There are a lot of these nodes, and therefor I have ...
Markus B
Votes: 0
Answers: 1
Doesn't STL functions in C++ work properly for long long int?
I have tried to use accumulate STL function for long long int data type. But it is showing garbage value in my compiler. But it works for int data type properly.
#include <bits/stdc++.h>
#define...
Nakib
Votes: 0
Answers: 1
When I enter the value 200000 as an input for a long variable, C program crashes, why?
For the simple code below, whenever I enter the value 200,000 (or any other high value), the program crashes:
long size;
printf("Enter the size of the array to be sorted: ");
sca...
Mariam Atef
Votes: 0
Answers: 2
How does the C strtol interpret hex strings?
I expect strtol("ffffffffffffffff", NULL, 16) to return -1 and strtol("7fffffffffffffff", NULL, 16) to return LONG_MAX, since the linux man-page first sentence seems to imply strto...
Moobius
Votes: 0
Answers: 3