To properly code in C, a programmer must understand the language, its structure, and how it functions, specifically the terms used to describe the language's pieces. The many pieces of C language code include keywords, operators, variables, statements, and a host of symbols that tie the various parts together in a manner that's constant, concise, and clear.
- [Instructor] Computer code has a certain look to it. … Adhering to familiar methods ensures … that your code is readable and understandable … to other programmers. … So C code runs top down. … The first line here is a comment. … It's just a note to myself or other programmers. … The comment is enclosed with a slash asterisk … and asterisk slash characters. … This text is ignored by the compiler. … It's skipped over as if it wasn't there. … Next you see the include preprocessor directive. … It tells the compiler to take the IO header file stio.h … and insert its code right here. … All C code starts with a main function. … Like any function, … it contains one or more statements, … all of which are enclosed in curly brackets or braces. … Within the function, … braces are also used to enclose a block of statements. … At line 11, … the four loop statements are enclosed in braces. … This block of statements belongs to the loop … and these are repeated a given number of times. … Braces can also group statements belonging …
- Writing your first C program
- Working the C development cycle
- Adding comments to code for clarity
- C language data types
- Declaring variables
- Making new data types
- Typecasting variables
- Using math, assignment, and logical operators
- Creating for and while loops
- Nesting loops
- Creating functions
- Returning values from functions
- Passing arguments to functions
- Creating recursive functions
Skill Level Intermediate
C: Data Structures, Pointers, and File Systemswith Dan Gookin2h 57m Intermediate
1. The Fundamentals of C
2. Variables and Values
3. Operators and Math
4. Decisions and Loops
Next steps1m 38s
- Mark as unwatched
- Mark all as unwatched
Are you sure you want to mark all the videos in this course as unwatched?
This will not affect your course history, your reports, or your certificates of completion for this course.Cancel
Take notes with your new membership!
Type in the entry box, then click Enter to save your note.
1:30Press on any video thumbnail to jump immediately to the timecode shown.
Notes are saved with you account but can also be exported as plain text, MS Word, PDF, Google Doc, or Evernote.