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