DEV Community

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

Posted on • Edited on

1 1 1 1 1

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.

#include<stdio.h>
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.

Heroku

Build apps, not infrastructure.

Dealing with servers, hardware, and infrastructure can take up your valuable time. Discover the benefits of Heroku, the PaaS of choice for developers since 2007.

Visit Site

Top comments (0)

Billboard image

Create up to 10 Postgres Databases on Neon's free plan.

If you're starting a new project, Neon has got your databases covered. No credit cards. No trials. No getting in your way.

Try Neon for Free →

👋 Kindness is contagious

Please leave a ❤️ or a friendly comment on this post if you found it helpful!

Okay