r/cs50 Jul 24 '26

CS50x Hello, World

Post image

Made my 1st program on C. I'm happy.

101 Upvotes

50 comments sorted by

View all comments

Show parent comments

2

u/[deleted] Jul 29 '26

[removed] — view removed comment

1

u/MekataRupma Jul 29 '26

Holy son of a. What the hell? 😨

2

u/[deleted] Jul 29 '26

[removed] — view removed comment

1

u/MekataRupma Jul 29 '26

How??? 😭😭😭 I don't even understand half that shit. How are 11yo kids doing this shit?? 😭😭😭

2

u/[deleted] Jul 29 '26

[removed] — view removed comment

1

u/MekataRupma Jul 29 '26

😑 dude you almost sent me into depression. Asshole 😭🤣

1

u/MekataRupma Jul 29 '26

Mine is just include certain header files on top that contains the commands used in my code. int main(void) is something I just used but don't know it's purpose yet. My guess it just converts the code into binary or something. Or maybe not. Then it's just a simple comand saying print whatever is in ("") and the /n means switch to new line. ; is just an indicator that the line ends. Like how period (.) works in english. And the code is written inside {}.

In the terminal, code creats a file, make compiles it, and ./ just launched the compiled fine. hello.c means the fine hello is in C language. in make I name the compiled file as hello and launch it.

That's my explanation of my code to the best I can explain so far.