tubeshowcase●1,194,391 videos♡ My collection 0
← Learn to Code

Learn to Code03:33

C typedef 📛

Bro Code ↗

From the creator

C typedef keyword tutorial example explained #C #typedef #keyword //typedef char user[25]; typedef struct { char name[25]; char password[12]; int id; } User; int main() { // typedef = reserved keyword that gives an existing datatype a "nickname" User user1 = {"Bro", "password123", 123456789}; User user2 = {"Bruh", "password321", 987654321}; printf("%s\n", user1.name); printf("%s\n", user1.password); printf("%d\n", user1.id); printf("\n"); printf("%s\n", user2.name); printf("%s\n", user2.password); printf("%d\n", user2.id); return 0; }

Published 2021-10-06 · Watch on YouTube ↗
Availability and playback restrictions are controlled by the original channel.

Keep exploring Learn to Code