read long long int c++ using sscanf code example Example: how to get a lonng in scanf in c long l; scanf("%ld", &l);