Course Hive
Search

Welcome

Sign in or create your account

Continue with Google
or
If statements are easy! ๐Ÿค”
Play lesson

C tutorial for beginners โš™๏ธ - If statements are easy! ๐Ÿค”

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 00:00:00 numbers 00:06:10 booleans 00:09:08 check if string is empty // if statement = Do some code if a condition is true. // EXAMPLE 2 bool isStudent = true; if(isStudent){ printf("You are a student"); } else{ printf("You are NOT a student"); } // EXAMPLE 3 char name[50] = ""; printf("Enter your name: "); fgets(name, sizeof(name), stdin); name[strlen(name) - 1] = '\0'; if(strlen(name) == 0){ printf("You did not enter your name"); } else{ printf("Hello %s", name); }

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