Тёмный

Learn C in 60 Seconds 

Dave's Garage
Подписаться 708 тыс.
Просмотров 365 тыс.
50% 1

A supercharged introduction to the C programming language. Dave teaches you a cocktail-party level of C in under one minute.

Наука

Опубликовано:

 

3 июн 2023

Поделиться:

Ссылка:

Скачать:

Готовим ссылку...

Добавить в:

Мой плейлист
Посмотреть позже
Комментарии : 275   
@guydror7297
@guydror7297 Год назад
He says C but displays the C++ icon
@paulveitch
@paulveitch Год назад
And yet he's only used C in the examples
@rm_steele
@rm_steele Год назад
​@@paulveitchand the autocomplete shown in the video is giving c++ code
@CuriouslyWatching
@CuriouslyWatching Год назад
He created Task Manager. He can display Python or JavaScript for all I care. He's earned it
@lyricaluchiha2978
@lyricaluchiha2978 Год назад
Already a reason to skip
@rodrigosouto9502
@rodrigosouto9502 Год назад
Easter Egg bro
@mmhck
@mmhck Год назад
Thanks. I can now finish my nuclear reactor’s cooling system.
@AbuGoldstein
@AbuGoldstein 10 месяцев назад
😁😁
@lret2070
@lret2070 10 месяцев назад
Writing something so sensitive in c sounds like an accident waiting to happen.
@der.Schtefan
@der.Schtefan 8 месяцев назад
I would argue copilot would have been able to help too.
@smallSphere69
@smallSphere69 8 месяцев назад
​​@@lret2070 you can't write that much complex systems with higher language btw. I prefer Assembly
@lret2070
@lret2070 7 месяцев назад
@@smallSphere69 Braindead comment, Linux kernal is written in c as a re microsoft and apple operating systems. Is that not complex?
@lucasgroves137
@lucasgroves137 Год назад
"Watch it again until it makes sense..." 😄
@user-ps9gg1xm6x
@user-ps9gg1xm6x 7 месяцев назад
Congrats 🎉🎉🎉 everyone. We learned c in just 60 sec.. 😂😂😂😂😂
@deadseveredheads
@deadseveredheads Год назад
Thought I was about to get a music theory lesson. I hid my guitar…
@fabiandrinksmilk6205
@fabiandrinksmilk6205 6 месяцев назад
Next step will be C# then
@getdirtyonthedancefloor
@getdirtyonthedancefloor 6 месяцев назад
music theory is pog
@Bill_N_ATX
@Bill_N_ATX Год назад
This is like saying writing a great novel in English is easy. After all it only uses 26 characters to capture every word in the language. Just 26 characters.
@rya3190
@rya3190 7 месяцев назад
Well, if english was a simpler language, it would be relatively easy, but it's 4/5 languages in a trenchcoat, and many don't stem off each other...
@omara5079
@omara5079 3 месяца назад
Languages are simple, programming is not
@NotEight
@NotEight Месяц назад
​@@omara5079Ive been practicing C and its actually pretty simple, sure its not as simple as lua or python but its still mostly readable...
@omara5079
@omara5079 Месяц назад
@@NotEight that’s not a contrary statement to mine. Most programming languages are simple and have an easy to follow syntax. Programming is more about the problem you are trying to solve, not so much the language you write it in. Like you could write a compiler in many languages that are simple to read, but it is a complex problem. Or, a middle schooler can read, but could they comprehend an essay about theoretical physics? They can read the words probably, but the ideas wouldn’t sink in. It’s great that you’re learning more and more, keep going and keep building
@NotEight
@NotEight Месяц назад
@@omara5079 thanks for clearing that up, i understood your comment wrong, and also thanks for not getting mad like most people would
@NexusKiwi
@NexusKiwi Месяц назад
Text: C in 60 seconds Logo: *shows c++*
@Exedeble
@Exedeble Месяц назад
Showing C with puts instead of printf is madness
@lefteriseleftheriades7381
@lefteriseleftheriades7381 Год назад
I now know enough C to write my own operating system. Just need a 60 second assembly course so I can switch from real to extended mode and create the TLB
@edoyak122466
@edoyak122466 Год назад
Lol
@javabeanz8549
@javabeanz8549 Год назад
Been a lot of years ago, but I wrote a bit of 8086/8088 ASM. In my course on Digital Computer Electronics, we did a few projects, the final project being a stop watch on an 8086 trainer. Outside of the class, I coded most of an ASM program to read a clock chip on a Leading Edge computer, and set the time in MSDOS 3.2. Funny thing though, they made enough changes in 3.3 that it didn't work. So I gave my classmate a copy of the code my instructor and I wrote. I don't know if they ever got it working on 3.3.
@vieilatome2257
@vieilatome2257 Год назад
I've been there, and my solution was to steal some assembly code from random osdev projects :') You need to do interrupt table and shit, but at least you will get access to the keyboard, so hooray !
@azhagurajaallinall126
@azhagurajaallinall126 11 месяцев назад
Huh.. you can write your OS in C? I mean the usable,not just boot with command line interface There's one of the Projects Mr.Dennis Ritchie himself head on development like Plan9,Inferno OS,Limbo (programming language) which are available in opensource Dennis Rotchie lead it as original intended way of creating C:portability,sharing with peers Until Java stole it with "write once,run anywhere" marketing catchphrase with chip industry growing & no cooperative plan to make ports for common purpose (thus leads to ever spewing "backward compatibility" curse that haunt the whole computer science industry) Some easy examples are Python,Java with their new versions simply outdating their own past versions (and they force it by stopped "support",No community or people be care like that) So back to the original convo,how could you (would you ever before actually?) Write OS without using Assembly & how 😳 Please share more info,you could check my channel too 😊 As sharing is what makes computer science one if the good communities leading the world 😅❤🌏🎉 Wish all be well 😃🌟✨🙌 25.07.2023 06:00/01 pm ist 4rea,25 like,1Ma
@chefboyardeeznutsinyourmouth
@chefboyardeeznutsinyourmouth 10 месяцев назад
Okay Terry Davis the second
Год назад
It's also a `What is a programming language` instead of `Learn C`.
@gklinger
@gklinger Год назад
Now explain to the newbs that puts() is for strings but if they want to print a variable they have to use printf(). I've been asked about that a few times over the years.
@informativt
@informativt Год назад
the f means format. they do different things.
@seremptos
@seremptos Год назад
So you mean that puts is useless, because printf can do exactly the same thing, but even more
@mgord9518
@mgord9518 Год назад
​@@seremptos It's not useless because it's faster and also automatically adds newlines. In situations where you're not using any variables, it makes little sense to use printf. Although, every modern compiler I can think of will automatically convert simple printf statements into puts.
@seremptos
@seremptos Год назад
@@mgord9518 oh yeah makes sense but like in school we only learn about the printf
@informativt
@informativt Год назад
@@mgord9518 It's not useless, as it is predictable. Eg if you feed it something that looks like a format string it will behave as expected.
@Egilhelmson
@Egilhelmson 4 месяца назад
Alas, by the standard, main() returns an int value, not void. Ignoring the return value by using the void type is easy, but wrong, like assuming your micro-C will free() dynamic memory from alloc().
@greg4367
@greg4367 Год назад
As a fifty-year C programmer... just one question: Why did you take so long, it's Not that complicated? Love your stuff.
@____________________________a
this is for the average smart person who has basically 0 experience with the concept of programming, so some context of how programs work and some general programming theory would probably be necessary for comprehension
@officialbfi01
@officialbfi01 Год назад
Assuming you really have been programming with C since it’s creation in the early ‘70s, you have decades of experience with the language so clearly you’re not the target audience for the video. For anyone who hasn’t seen C code (or any code) before, this is a concise and thorough explanation of the very basics that other RU-vid videos would spend 10 minutes describing yet here is done in under a minute. I would like to say though that if you actually have been programming for 50 years that is pretty cool 👌
@SnarkDADmin
@SnarkDADmin Год назад
I think both of the other replies are missing the sarcasm in this comment.
@seg_fault_jim
@seg_fault_jim Год назад
​@@officialbfi01 will see niuuthe
@KindStarWonder
@KindStarWonder Год назад
But Dave... you said nothing about pointers or dynamically allocated memory.
@sharokhkeshawarz2122
@sharokhkeshawarz2122 7 месяцев назад
Did he just made a function main with void ? XD (it works but dangs its not usual)
@Archedbog91
@Archedbog91 2 месяца назад
Why doesnt the hello world funtion not return 0? Or better yet, why is main a void finction instead of an int function?
@valcubeto
@valcubeto 7 месяцев назад
"If the function doesn't exist, you need to define it" "Don't forget to clean your allocated values at the end"
@LoveToMix
@LoveToMix Год назад
“Average smart person” love that description
@damionlee7658
@damionlee7658 Год назад
It doesn't think, it doesn't know anything, it doesn't get happy, it doesn't get sad... It just runs programs!
@JustinEmlay
@JustinEmlay Год назад
To the average smart person. Now that's qualification!
@TRDiscordian
@TRDiscordian Год назад
Why is the opening logo C++ if you're explaining C?
@TRDiscordian
@TRDiscordian Год назад
This is such a pointless video, but hopefully it was fun to make.
@kevinyonan9666
@kevinyonan9666 Год назад
Because Dave is a boomer who prob thinks C and C++ are still the same language despite them separating since the 90s
@john.dough.
@john.dough. Год назад
@@kevinyonan9666 it's because github copilot automatically filled it in, and large language models are inherently unreliable, especially with minimal context 🤦 he literally didn't write it, and you're ironically exposing how out of touch you are with modern AI developer tooling.
@kevinyonan9666
@kevinyonan9666 Год назад
@@john.dough. I'm strongly aware of the AI aspect and we're not talking about that. Go be a troll somewhere else
@reynoldskynaston9529
@reynoldskynaston9529 Год назад
@@kevinyonan9666 c++ is just c with more stuff (kinda)
@ajk_
@ajk_ Год назад
Thanks for making shorts for good and not for evil
@erikkonstas
@erikkonstas 6 месяцев назад
Also, (void ()()) is not a valid type for main, the valid ones are (int ()(void)) and (int ()(int, char**)).
@megharajm.h5642
@megharajm.h5642 5 месяцев назад
Bro what is the name of the compiler used in the video
@erikkonstas
@erikkonstas 5 месяцев назад
@@megharajm.h5642 Hm, IDK, but I've since unsubbed from this channel, too many erroneous videos in there.
@Silentbob1494
@Silentbob1494 3 дня назад
'smart person'? HAHA! Sir, you got me fuuucked up.
@drewf64
@drewf64 Год назад
I feel ready to write an optimal prime sieve
@madmax404
@madmax404 Год назад
FYI Having the wrong logo and having that autocomplete (copilot?) turned on in this example makes this a lot less beginner-friendly. (Because it's confusing and gaslighty)
@adamscarsandstuff4969
@adamscarsandstuff4969 4 месяца назад
The letter “C” holds a distinctive place in the English alphabet, often recognized for its versatility and varied pronunciation. Its phonetic range allows it to represent different sounds, including the hard “k” sound as in “cat” or the soft “s” sound as in “cent.” This duality contributes to its widespread use in constructing words across various contexts, making it an essential component of language. In linguistics, “C” also plays a crucial role in understanding phonology and phonetics. It is classified as a consonant, which means it typically requires some obstruction of airflow to produce its sound. However, its flexibility extends beyond this traditional classification, as evidenced by its ability to mimic both consonantal and vowel-like qualities depending on its placement within a word. Beyond its phonetic significance, “C” holds cultural and historical significance. It has been part of numerous ancient scripts, evolving over time to its current form in the Latin alphabet. Throughout history, the letter “C” has been associated with various symbols and concepts, often representing notions like creation, continuity, or change in different cultures and mythologies. Moreover, “C” serves as a cornerstone in modern communication, appearing prominently in various fields such as literature, science, and technology. From composing compelling narratives to formulating complex mathematical equations, its presence is ubiquitous. Whether it’s in crafting elegant prose, deciphering scientific formulas, or navigating digital interfaces, the letter “C” remains an indispensable element of human expression and understanding. And yes this was ai generated
@pavliv
@pavliv 29 дней назад
Okay i need to update my resume, now i know C.
@raceboi1
@raceboi1 3 месяца назад
"Can I explain C..." Nah man you don't even have the right syntax when even writing the basic "Hello World" XD!
@pojomcbooty
@pojomcbooty Год назад
What always got me in multiple languages (until later) was - why “void”, or why “public static void main()” (Java) etc ? I just didn’t understand that void (or int or whatever) was the return type. To many, I was overthinking it while at the hello world stage, but I really think that understanding each part helped me reduce any fear / anxiety I had about individual languages or systems. When a language just does “print” it seems so much more accessible to a newbie than “public static void main”. But I got there… I love your channel, keep up the great work!!
@djbaker4169
@djbaker4169 10 месяцев назад
What’s wild is I’m understanding what you said quicker than I understood the video
@erikkonstas
@erikkonstas 6 месяцев назад
void is also the wrong return type for main, which is supposed to return the exit code, the correct type is int.
@pojomcbooty
@pojomcbooty 6 месяцев назад
@@erikkonstas The exit code of a Java application is not directly related to the return type of the main method. Instead, the exit code is determined by the status of the application upon termination. By default, if the application exits normally, it returns an exit code of 0. If there are any uncaught exceptions leading to abnormal termination, a non-zero exit code is returned. If you want to explicitly set an exit code, you can use the `System.exit(int statusCode)` method. For example, `System.exit(0)` indicates successful completion, and any non-zero value can indicate various error conditions. So, you don't need to change the main method to `public static int main`. The standard `void` return type is appropriate, and you can manage exit codes through `System.exit(int)` as needed.
@pojomcbooty
@pojomcbooty 6 месяцев назад
I realised just now though you’re probably talking about C. I haven’t worked much with C tbh. And my reply mentioned “multiple languages”. I’m more familiar with Java. Sorry
@dtiydr
@dtiydr 11 месяцев назад
From absolutely 0 knowledge about programming, I learned to program by looking at 2 short episodes of 10 from of a youtube tutorial about C programming around 10 years ago.
@pakutamiko8207
@pakutamiko8207 7 месяцев назад
How to code in pure C on windows with a Lightweight editor
@jal051
@jal051 6 месяцев назад
Visual Code with the C extension. It's free and a great editor.
@TN-cx4qi
@TN-cx4qi 9 месяцев назад
Yep this covers everything. If you watch this start applying for as many software engineering jobs as you can.
@davidclift5989
@davidclift5989 Год назад
At college, my computer science teacher gave computers the acronym TOM CAT (Total Obedient Moron Can't Actually Think). It's worth remembering, even for that fancy AI stuff people keep going on about, it really is not thinking!
@malekith6522
@malekith6522 Год назад
Oh my oh my ... Words of gold.
@YouTube.....1M
@YouTube.....1M Месяц назад
Now I can put it in my Resume😂
@afourtrackmind
@afourtrackmind 6 месяцев назад
I’m coming at this without having much in way of computer education except from what I’ve picked up over the years. I’d really like to improve to the point where I can do more making my own shit. Unlike most of the comments, my dumb ass found this useful. Thanks.
@dickheadrecs
@dickheadrecs Год назад
Starring Vin Diesel and Nicolas Cage
@rahulgoyal4052
@rahulgoyal4052 10 месяцев назад
Thanks for teaching me c.
@Saberkun_KM
@Saberkun_KM 7 месяцев назад
Thank you, dad 🥺
@Raphaeltheslayer
@Raphaeltheslayer 24 дня назад
It looks similar to Lua, I have a feeling I’d be able to navigate it earlier with the similarities it has just different wording and some scripts like module scripts require that same syntax so it isn’t a complete new thing
@Bassotronics
@Bassotronics Год назад
I want to learn C - + for quantum computers.
@futuristic-
@futuristic- Год назад
Sorry I could only teach you C**
@gamingbutimbad1943
@gamingbutimbad1943 Год назад
I know it's a joke but if you're curious about how quantum computers are programmed then check out Q# by Microsoft
@random6033
@random6033 7 месяцев назад
ISO C99 and later do not support implicit function declarations and main should have a return type of int and specifying it as void may give you warnings or even compiler or linker errors (depending on the compiler)
@nicolenew1708
@nicolenew1708 6 месяцев назад
SUPER THANK YOU
@susamogus11111
@susamogus11111 5 месяцев назад
Curly braces after the line Pain for most programmers
@WifeWantsAWizard
@WifeWantsAWizard Год назад
Does it every say, "No, YOU puts!!!"
@m9ddie
@m9ddie 3 месяца назад
now tell me how tf i was supposed to figure out that exercise
@sanjarcode
@sanjarcode Год назад
Thanks for this
@jacoobes
@jacoobes 9 месяцев назад
c : the DSL for memory management errors
@patrickohara227
@patrickohara227 3 месяца назад
Awesome!
@mastershan87
@mastershan87 8 месяцев назад
Thanks to this video I was able to dev a next gen video game.
@denizdgtn4108
@denizdgtn4108 4 месяца назад
I learned ty
@tim_allen_jr
@tim_allen_jr 7 месяцев назад
C++ can handle most tasks for you if the hardware can follow the program.
@The-python-guy
@The-python-guy 23 дня назад
Thanks for giving me task manager, so I can see how poorly optimized my code is in memory
@The-python-guy
@The-python-guy 23 дня назад
Oh and fix it with the data in mine
@brad9529
@brad9529 Год назад
30 words that can be used in endless complicated web
@pyromethious
@pyromethious Год назад
What's the auto-complete being used?
@teckyify
@teckyify 6 месяцев назад
Std::println
@AchrafAitIbba
@AchrafAitIbba Год назад
Man explaining C with C++ syntax
@mcflurry8743
@mcflurry8743 3 месяца назад
Why would you have a void main?
@jaimeduncan6167
@jaimeduncan6167 11 месяцев назад
Great job 😊
@ogamiitto5642
@ogamiitto5642 Год назад
Just 2 small… well, maybe not mistakes, letʼs call them blemishes: As specified, both CheckTheWater() as well as main() will⁽¹⁾-‘void’ being missing-be recognized as variable argument functions (i.e. functions that can be called with any number of arguments [of any type]). Also ‘void main()’ should, if one wants to be standards-compatible, probably be typed as ‘int main(void)’… so that the application at hand can properly return its exit status code. Other than those small nitpicks: For 60 seconds? Nice video! ⁽¹⁾ At least until C23 is in wide use.
@EasonTek
@EasonTek 6 месяцев назад
The main function MUSTt return int.
@Manoj29122
@Manoj29122 9 месяцев назад
Now people can add c programming in their resume 😅
@matthewspence7476
@matthewspence7476 5 месяцев назад
Average smart person? Well, I am the average dumb person but I will try to learn anyway
@candyts-sj7zh
@candyts-sj7zh Год назад
I am the average stupid person
@thegreatpleco3920
@thegreatpleco3920 5 месяцев назад
Uh main should return an int and at least i like to use it woth argc and argv
@user-ti1iy3mj6e
@user-ti1iy3mj6e 22 часа назад
Nice
@Duckless137
@Duckless137 5 дней назад
I’m sorry VOID main? You’re insane…
@demonkingrimuru7844
@demonkingrimuru7844 10 месяцев назад
He explained 1st 2 chaps main points of engineering 1st yr in 60 sec 😂😂
@Petch85
@Petch85 Год назад
30 words... Sounds like an over-simplification to me.
@JorijnLamberink
@JorijnLamberink Год назад
it really does not take much more than that ;)
@perwestermark8920
@perwestermark8920 Год назад
Not sure if it has changed but last I checked, C has 32 reserved keywords. auto break case char const continue default do double else enum extern float for goto if int long register return short signed sizeof static struct switch typedef union unsigned void volatile while
@der.Schtefan
@der.Schtefan 8 месяцев назад
You can explain it to the average person, but you can't make them write code that is correct and won't mess up things. Nobody can...... Nobody.
@vistaero
@vistaero Год назад
C and C++ are not the same thing. You know that for sure. Why would you mix them up?
@IshayuG
@IshayuG Год назад
He didn't, it was autotype prediction. It was not ideal.
@von_nobody
@von_nobody Год назад
@@IshayuG In recent video he mix it too, he explain pure C concepts and used C++ library, not meeting using C++ logo on both this video.
@javabeanz8549
@javabeanz8549 Год назад
Considering that I took what was supposed to be a C++ college course years ago, and all we wrote was C, but we interacted with some C++ code that the instructor gave us for one project near the end of the course. I also was active in a news group where the people that wrote C++ were regularly active, so the course was a bit confusing, when reading about how C++ should be coded.
@e.lan.s
@e.lan.s 10 месяцев назад
Watch again until it makes sense
@gxy_senpaii
@gxy_senpaii 4 месяца назад
Thanks. Now i can go to alien spaceship and hack the system
@mr.shredder5430
@mr.shredder5430 8 месяцев назад
c progamming means cipicial
@igormicovic
@igormicovic 19 часов назад
Average C code used by Pindows
@BenEehayeh
@BenEehayeh Год назад
When you want to teach somebody a language? Zig
@HyperKNF
@HyperKNF 7 дней назад
32 deg fahrenheit 💀
@multiamphetaminsaft
@multiamphetaminsaft 5 месяцев назад
C is simple, but it does not deserve a 60 sec short …
@mancillagarfiasabraham8392
@mancillagarfiasabraham8392 Год назад
A bit simplified but good video!
@justw4lkbesideme
@justw4lkbesideme 7 месяцев назад
Hmm only 30 words nice info for beginner
@ZealClips
@ZealClips 2 месяца назад
So this with pointers… *🙏
@ItsCOMMANDer_
@ItsCOMMANDer_ 6 месяцев назад
Cool, but i'd recomend printf function wich comes from stdio and including a newline at the end of the string via
@erikkonstas
@erikkonstas 6 месяцев назад
And where do you think puts comes from...?
@ItsCOMMANDer_
@ItsCOMMANDer_ 6 месяцев назад
@@erikkonstas stdio
@heny2116
@heny2116 Год назад
Why does he use void main instead of into main
@Unavailable8923
@Unavailable8923 Год назад
No Duff's device. Instant fail.
@tetraquark2402
@tetraquark2402 Год назад
Ha! Now do hello world like it was for windows 3.12
@AnandKumar-kz3ls
@AnandKumar-kz3ls Год назад
My laptop takes almost 10 minutes to open till than someone can learn c 20 times 😢
@PhilDietz
@PhilDietz Месяц назад
who uses puts() instead of printf() ?
@pakutamiko8207
@pakutamiko8207 7 месяцев назад
Where to learn pure C
@misterwafflezzz
@misterwafflezzz Год назад
See, even he uses copilot
@lizzie-wizzie
@lizzie-wizzie 9 месяцев назад
im not smart 💀
@joey-typing
@joey-typing 6 месяцев назад
what keyboard do you use please tell me
@thecameraman7682
@thecameraman7682 9 месяцев назад
Which compiler do you use??
@carpybaraba
@carpybaraba 2 месяца назад
Is bro using visual studio ⁉️⁉️🤨👊
@hussienkhaled1918
@hussienkhaled1918 5 месяцев назад
What do you mean by 30 words ?
@The_Codemaster144k
@The_Codemaster144k 8 месяцев назад
Bro... Put int main not void main
@vivekk8083
@vivekk8083 7 месяцев назад
Why void function???
@LifeLongArtist
@LifeLongArtist 7 месяцев назад
“Learn C in 60 Seconds” Uses C++ and shows absolutely nothing about how to use that language
@Anemoboy22
@Anemoboy22 Месяц назад
c......++?
@----.__
@----.__ Год назад
SYS 64738
@jianeapanpontanares6900
@jianeapanpontanares6900 Месяц назад
What kind of app is that?
@H484R
@H484R 9 месяцев назад
Wow I can go get a job at Google now
@fruitfcker5351
@fruitfcker5351 Год назад
Not enough time. Maybe you should stretch it to 100 seconds.
@parmodparkash1542
@parmodparkash1542 5 дней назад
Ch , me Hmm . Good
Далее
Assembly Language in 100 Seconds
2:44
Просмотров 1,5 млн
Boots on point 👢
00:24
Просмотров 4,6 млн
Simulating the Evolution of Rock, Paper, Scissors
15:00
Calendar in c language || C language project
6:47
Просмотров 3,5 тыс.
C Programming - Basics
5:41
Просмотров 14 тыс.
Programming a multiplayer game from scratch in 7 DAYS
18:28
This is Why Programming Is Hard For you
10:48
Просмотров 692 тыс.
I tried 10 code editors
10:28
Просмотров 2,9 млн
ЗАКОПАЛ НОВЫЙ ТЕЛЕФОН!!!🎁😱
0:28
Треш ПК за 420 000 рублей
0:59
Просмотров 239 тыс.
Здесь упор в процессор
18:02
Просмотров 332 тыс.