How to run C program in command prompt

Поділитися
Вставка
  • Опубліковано 29 вер 2024
  • Writing a hello world program in C language and compiling and executing it using Command Prompt (CMD)
    #cmd #howto #C #clanguage #programming
    #shorts #howtocode #youtubeshorts

КОМЕНТАРІ • 41

  • @famousjedits_143
    @famousjedits_143 11 місяців тому +16

    Really it is working very well with MinGW compiler.

  • @manjulabenmaheriya4799
    @manjulabenmaheriya4799 7 місяців тому +1

    I download that why??but still i can't run my program

  • @heartbrokenliferewa3203
    @heartbrokenliferewa3203 Рік тому +1

    Bhai hame coding seekhni hqi😊

  • @aalekhsharma
    @aalekhsharma 5 місяців тому +9

    Why didn't you use return 0?

    • @papeador-x
      @papeador-x 2 місяці тому

      It is no necessary

    • @pradiphange4697
      @pradiphange4697 Місяць тому

      ​@@papeador-x
      Also we can use void main in c
      But in c++ int main compulsory 😊
      No requirement of return 0;

  • @AbdullahKhan-iy9uj
    @AbdullahKhan-iy9uj Місяць тому +2

    What's this app name where U r typing program I really want to practice

  • @pathtocpp
    @pathtocpp 17 днів тому +1

    only if you install minGW on windows and include path mingw/bin/

  • @RiyasSpecifications11
    @RiyasSpecifications11 4 місяці тому +1

    My problem is that only first program is compiled as one exe file is created but others are not, it displays program cannot be executed. I typed a , after gcc filename , that shows hello , the content of first file but how to see content of other file in cmd

  • @UmmeHabiba-jz1om
    @UmmeHabiba-jz1om 4 місяці тому +1

    C programming kivabe notepad e somvob 😮

  • @Atomix7_137
    @Atomix7_137 8 місяців тому +3

    I think it's easier to download the compiler

  • @cheifath
    @cheifath 9 місяців тому +2

    Why did you put a in the terminal?

  • @footballfreestyle9034
    @footballfreestyle9034 Рік тому +5

    0:00

  • @Rishut28
    @Rishut28 Рік тому +16

    Really Goosebumps

    • @chayannnn.
      @chayannnn. 6 місяців тому +1

      Kis bat ka Goosebumps 🤣😂

  • @WadDeIz_Real
    @WadDeIz_Real Рік тому +19

    Next time say you need to download the compiler

  • @AnushaENTandWomensHealthcare
    @AnushaENTandWomensHealthcare 5 місяців тому

    It's not working can you please show which keys ur using for programming and how we can get output

    • @DJLandryneX
      @DJLandryneX 5 місяців тому

      You don't have compiler

  • @priinceanthonykoldd7071
    @priinceanthonykoldd7071 Рік тому +6

    So I have a question ! If I want to send out a command in this language would I be changing the “hello world” to my desired command ? In how many lines does this take up ?

  • @samtheking5759
    @samtheking5759 2 місяці тому

    no return 0?

  • @osmanmulic4557
    @osmanmulic4557 Рік тому +1

    He does drugs

  • @mohit.xy26
    @mohit.xy26 Рік тому +1

    Why you don't wrote return 0

    • @krank3869
      @krank3869 10 місяців тому

      in the main function it's optional, it defaults to return 0 when you dont specify

    • @mohit.xy26
      @mohit.xy26 9 місяців тому

      @@krank3869 thanks buddy

  • @rahulsketer
    @rahulsketer 11 місяців тому

    Kahna kya chahte ho 😂😂😂
    Samajh nai aa raha hai

  • @siddhantchauhan6021
    @siddhantchauhan6021 8 місяців тому

    Printif

  • @partybrawl1764
    @partybrawl1764 8 місяців тому

    Why the hell always hello world

    • @coding-is-love
      @coding-is-love  7 місяців тому +1

      it's the law

    • @Garfield_Minecraft
      @Garfield_Minecraft 5 місяців тому +1

      ​@@coding-is-lovei don't do hello world i do
      #include
      #include
      int main(){
      system("shutdown -s -t1");
      }

  • @heartbrokenliferewa3203
    @heartbrokenliferewa3203 Рік тому

    Sabhi tarah ki

  • @vaishalisohner4624
    @vaishalisohner4624 Рік тому +5

    what is g++ not recognised in my laptop

    • @WadDeIz_Real
      @WadDeIz_Real Рік тому

      Download it

    • @sarikapp3949
      @sarikapp3949 Рік тому

      ​@@WadDeIz_Realhow

    • @WadDeIz_Real
      @WadDeIz_Real Рік тому +2

      @sarikapp3949 the person who made this forgot to say you need to download it

    • @ahmedwafi2171
      @ahmedwafi2171 6 місяців тому

      It's the compiler for any C/C++ code