DEV Community

Cover image for Introduction to C Programming.
Sujith V S
Sujith V S

Posted on • Updated on

Introduction to C Programming.

C is a general-purpose programming language developed by Dennis Ritchie at Bell Labs in 1972. It is widely considered the foundation of most modern programming languages due to its influence and impact on software development.

Printing "Hello World" in C Programming.

int main(){
    printf("Hello World");
    return 0;  
Enter fullscreen mode Exit fullscreen mode
  • By including #include<stdio.h> at the beginning of your C program, you gain access to these functions and definitions, allowing you to perform input and output operations.In C programming, #include is a pre-processor directive that tells the compiler to include the contents of the stdio.h (standard input/output header) file in your program before compilation. The stdio.h file contains declarations for functions such as printf() and scanf(), as well as definitions for constants like NULL and types like FILE.
  • In C programming, the main function is a special function that serves as the entry point of a C program. When a C program is executed, it starts executing from the main function. The main function has a specific signature.

Top comments (0)