Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Typedef in C
#1
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;
}
Also follow me on Youtube for videos about video games:
https://www.youtube.com/channel/UCxfkGVU...2mQ/videos
Reply


Forum Jump:


Users browsing this thread: 4 Guest(s)