QP School

Full Version: Typedef in C
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
typedef is used to create aliases for data types.

typedef unsigned int uint;

int main() {
    uint x = 10;
    printf("%u\n", x); // Output: 10
    return 0;
}