***
C. Source Code. Machine Code. Compiler. Correctness, Design, Style. Visual Studio Code. Syntax Highlighting. Escape Sequences. Header Files. Libraries. Manual Pages. Types. Conditionals. Variables. Loops. Linux. Graphical User Interface (GUI). Command-Line Interface (CLI). Constants. Comments. Pseudocode. Operators. Integer Overflow. Floating-Point Imprecision.
***
TABLE OF CONTENTS
00:00:00 – Introduction
00:01:15 – Source Code
00:04:59 – Visual Studio Code for CS50
00:08:34 – Hello, World
00:18:39 – From Scratch to C
00:25:42 – Header Files
00:29:10 – CS50 Manual Pages
00:32:18 – Hello, You
00:42:31 – Terminal Commands
00:51:06 – Types
00:52:24 – Conditionals
01:00:05 – Variables
01:02:50 – compare.c
01:16:34 – agree.c
01:23:26 – Loops
01:24:41 – cat.c
01:41:55 – Functions
01:56:36 – Correctness, Design, Style
01:58:33 – Mario
02:12:11 – calculator.c
02:20:04 – Integer Overflow
02:22:53 – Boeing
02:24:42 – Pacman
02:25:25 – Truncation
02:27:17 – Type Casting
02:30:10 – Floating-Point Imprecision
***
This is CS50, Harvard University’s introduction to the intellectual enterprises of computer science and the art of programming.
***
HOW TO SUBSCRIBE
HOW TO TAKE CS50
edX:
Harvard Extension School:
Harvard Summer School:
OpenCourseWare:
HOW TO JOIN CS50 COMMUNITIES
Discord:
Ed:
Facebook Group:
Faceboook Page:
GitHub:
Gitter:
Instagram:
LinkedIn Group:
LinkedIn Page:
Medium:
Quora:
Reddit:
Slack:
Snapchat:
SoundCloud:
Stack Exchange:
Telegram:
Threads:
TikTok:
Twitter:
Twitter Community:
YouTube:
HOW TO FOLLOW DAVID J. MALAN
Facebook:
GitHub:
Instagram:
LinkedIn:
Quora:
Threads:
TikTok:
Twitter:
***
CS50 SHOP
***
LICENSE
CC BY-NC-SA 4.0
Creative Commons Attribution-NonCommercial-ShareAlike 4.0 International Public License
David J. Malan
malan@harvard.edu
source

Many thanks from Russia.
is it just me or is C looks like the linux terminal in kali?
42:24 on what?
University kids learning coding scratch!? Man you are so lucky in 2024!?
세계 최고 교수중 한명,
i should have watched this before code in c.
why create a library that abstracts away actual c code? what's the point in even teaching c like that? Makes this whole lecture pointless imo
I'm not even born yet, and I'm already learning CS50. See you guys in Lecture 2. 💀
Bro anyone told me on which timestamp he download compilar for C language pls tell mee
53:08
28:40 ngl i did that mistake LOL
2:11:49
Thank you sir. Superb lecture.
CS50 has changed my life in 2020, I took this course and introduction to AI, then I went to do my master's. Today I'm a regional lead for data & AI. Big thanks to this course, couldn't have done it without it.
i am not ashamed to say that i was one of the non-zero number of students that put "<studio.h>" and could not figure out why their code wasn't working.
I am learning it at age 17 and I very appreciate this is for making it free I can say this is best of best
can anyone tell me if i should make notes ?
14 years old
Man, Charlie Sheen got real smart
2:23:27
The Boeing was recording every hundreth of a second. Putting this out there in the hopes that no one else spends half an hour wondering why their code gave 2485 instead of 248.5 🙂
☕☕☕🗿🕑🤟
I've watched old CS50 and was enrolled at the age of 16 because I was a competitive programmer, now I am here again with David and he is really a good teacher IMO, his communication skills are impressive.
wow!
42:46
Day 2 He’s right most of this stuff is going over my head. I’ll just push through learn what I can and watch it again later
I'm learning this at 1000011
.
.
.
.
.
.
Nobody cares what age you start at, boomers.
22 yo MtF here. Trying to learn an actual skill and do something with my life. Never did much programming when I was a kid but Mr Teacher Man explains everything so well even a dumbass like me can understand. Thank you.
2026 first step in coding
David, you need a good diet and stop eating bullshit;
Thank you for the excellent lecture <3
Is C++ gonna be the same as C?
❤
1/6/26 51:00
what should i do to have all benifits from this course
I am learning this in my first semster so i have best advantage
53:14
40:05
38:00
24:38
You are very nice. You have left all teachers behind with your engaging way of teaching.
1:53:43
i didnt think i'd ever be capable of doing anything like this, i have no experience with computers outside of being passionate for video games and knowing my way around navigating them…..
today after a day of work i made a very small text adventure game. its made with a few choices, lots of print text and it asks and stores multiple different questions like age, name…etc. I'm doing my absolute best to be humble and realize i still know nothing and continue my journey, i feel very ignorant but doing my best to tell myself i can do this, and doing my best to celebrate the small wins. thanks david.
leaning as 18y/o