Integer variables store whole numbers. Wider integer types can hold larger values.

Integer Types

integer_types.c
#include <stdio.h>

int main(void) {
    int count = ;
    long doubled = (long)count * 2;

    printf("count=%d\n", count);
    printf("doubled=%ld\n", doubled);
    return 0;
}
#include <stdio.h>

int main(void) {
    int count = ;
    long doubled = (long)count * 2;

    printf("count=%d\n", count);
    printf("doubled=%ld\n", doubled);
    return 0;
}
#include <stdio.h>

int main(void) {
    int count = ;
    long doubled = (long)count * 2;

    printf("count=%d\n", count);
    printf("doubled=%ld\n", doubled);
    return 0;
}
int `int` is the everyday whole-number type.
long `long` gives a wider whole-number type on many platforms.