Run C Program in Command Prompt

preview_player
Показать описание
Learn how to compile and run C programs in the command prompt/line without using an IDE. The commands are below.

Commands:
gcc 'name_of_the_file' e.g. gcc hello.c
gcc -o 'name_of_exe' 'name_of_file' e.g. gcc -o hello helloWorld.c

Please Subscribe !

►Support this channel get C-Programming Book:

Рекомендации по теме
Комментарии
Автор

Thank u so much this small video helped me to stop quiting from c programing

-VikranthGattadi
Автор

when i do gcc it says that its not a command. please help!

swayy_was_taken
Автор

Good video; Clearly explained, thanks.

truthsearch
Автор

Explained Very Well and I've learned it easily and simple to understand. Thanks a lot for posting such a very short and informative video... 😊😇🥰

SARVESH_VISHWANATH
Автор

great video man. could understand every word you spoke, thank you, there's hope for mankind yet!

michaelboss
Автор

You have to install a gcc compiler first

I use this


It easy to download and install

techbro_
Автор

Help, I had a problem while compiling a files (c files), cmd always pop up when I clicked enter, and then keep pop up randomly.
So basically, I can't compile anything.

avxcxna
Автор

Hello. First off thank you for this; I'm grateful and impressed to see programming folks explaining this for us laymen. Secondly, I just downloaded and installed GCC this afternoon so I can begin trying to do this... and I have a little hiccup I want to ask about:

I am at 1:16. I just typed as suggested and instead of it exporting a new C program, I have received an error message saying: "'Code\C'' is not recognized as an internal or external command, operable program or batch file."

For context, I have an external hard drive. My C-Drive has almost no space and is overflowing, so I have taken to installing things on my external- it's in the G drive- including the GCC packet when it prompted me, and the "Hello World" .c file I typed.

I pulled up Command Prompt; got the default line C:\Users\(myname)>; I typed G and then the folder path; and then get the error message when I try to compile the program.

---

I realize this comment's a bit disorganized, but that's exactly because I'm floundering and have only a vague idea what could be wrong. Is it because it's installed in the G Drive or is something else at play here?

ryarod
Автор

'perl' is not recognized as an internal or external command,
operable program or batch file.

help me ! :(

hachihao
Автор

I have a message saying that gcc is not recognized as an internal command. How to set it up?

raphaelpavan
Автор

Hello, I have a Sourcecode with several cs files.How to do that?

roswithadusa
Автор

Desktop is not recognised as an internal or external command


Error.
What to do?

vatsalyaa.m
Автор

' scanf() ' doesn't run in VScode(its delaying more than expected) but it ran in cmd.
Does Anyone know about this issue?

naurseakart
Автор

How is this helpful to any of you? I know the gcc commands if i get it to install on windows - you ovbiously skipped like a thousand steps. i hate seeing videos like this with comments saying " thanks so awesome!" when nothing is awesome just makes everything more irritating.

nyctimus
Автор

gcc is not recognized as a command. Help!

juliankentish
Автор

What if my c file is in some folder in a drive

_akbarisahil
Автор

should have smaller than 13 of your screen, too small to see terminal

nycbklynrmp
Автор

how can i create a hello world program

tanvishroy.g
Автор

Help me I tried but no such file is not recognized program Iam getting this

hemiballarapu