Lecture 2: Sandbox Environment and Basic C Program

Поділитися
Вставка
  • Опубліковано 1 лют 2025

КОМЕНТАРІ • 6

  • @electramite570
    @electramite570 6 днів тому +5

    Good to C you back in action !!!

  • @pyjamabrah
    @pyjamabrah  4 дні тому +1

    The GitHub Repository is available here: github.com/pyjamabrah/c-language

  • @blaisofotso3439
    @blaisofotso3439 3 дні тому

    Hallo from Germany. Great tutorial.
    how does the print get to execute if std.io.h only includes the header files?
    isn't the linker has to link the cop file?

    • @pyjamabrah
      @pyjamabrah  3 дні тому +1

      That is correct. I omitted that detail in this lecture. We will return to it in future lectures :)

    • @alifaizan4377
      @alifaizan4377 3 дні тому

      You need two things to execute a function: function definition and function call. The definition of the printf function is present inside stdio.h and the function call is present within the main function in the file "main.c"
      "Including" a header file is more or less similar to copying the contents of that file into your code which is how your main.c file gets the definitions of all the functions defined within stdio.h