how to get a lonng in scanf in c

C
long l;

scanf("%ld", &l);
Source

Also in C: