Course Hive
Search

Welcome

Sign in or create your account

Continue with Google
or
Learn typedef in 5 minutes! ๐Ÿ“›
Play lesson

C tutorial for beginners โš™๏ธ - Learn typedef in 5 minutes! ๐Ÿ“›

4.0 (0)
13 learners

What you'll learn

This course includes

  • 6.5 hours of video
  • Certificate of completion
  • Access on mobile and TV

Summary

Keywords

Full Transcript

#coding #programming #cprogramming typedef int Number; typedef char String[50]; typedef char Initials[3]; int main() { // typedef = reserved keyword that gives an existing datatype a "nickname" // Helps simplify complex types and improves code readability // typedef existing_type new_name; // Example 1 Number x = 3; Number y = 4; Number z = x + y; printf("%d", z); // Example 2 String name = "Bro Code"; printf("%s", name); // Example 3 Initials user1 = "BC"; Initials user2 = "SS"; Initials user3 = "PS"; Initials user4 = "ST"; printf("%s\n", user1); printf("%s\n", user2); printf("%s\n", user3); printf("%s\n", user4); return 0; }

Course Hive

Continue this lesson in the app

Install CourseHive on Android or iOS to keep learning while you move.

Related Courses

FAQs

Course Hive
Download CourseHive
Keep learning anywhere