on: 5 minutes id: c-introduction-to-c-programming-and-hello-world language: c module: c-beginner order: 1 publishDate: 2025-07-17 slug: c-introduction-to-c-programming-and-hello-world title: Introduction to C Programming and ‘Hello, World!’
Hello there future coders!
Today let’s dive into the world of C programming, a language known for its efficiency and versatility. We will start off in classic programming tradition- writing your first “Hello, World!” code. This beginner-friendly code will help you dip your toes into the programming world of C.
C opens up a realm of powerful and fundamental coding principles that will help you in becoming coders of the future.
Understanding JDoodle’s IDE
Before we start off this journey, let’s first familiarize ourselves with JDoodle’s IDE, which is a browser-based platform that supports 85 programming languages. For this tutorial, we’ll be utilizing JDoodle’s C compiler which you can access here. Get ready to write your first-ever C program on JDoodle’s user-friendly online IDE!
Writing Your First Program
Let’s begin by entering the following code into the online IDE:
#include
int main() {
printf("Hello, World!\n");
return 0;
}
Here, we will use the standard I/O library, using the printf function to display the text that’s enclosed in double quotes. In this case, it’s “Hello, World!”
Running the Program
Now let’s run the program. For that you will find within the online IDE, the ‘run’ button. Once you press the button you can now witness “Hello, World!” presented in the output box. Bravo! You’ve just successfully written and run your first C program.
Assignment
Now, let’s put a little personal touch into your program. Replace the word “World” with your name in the text within the double quotes. Next, execute the program once you’ve this change. Do you see the code greeting you? You’ve done it!
Conclusion
Kudos! You embarked on your C programming journey with JDoodle with gusto. Bear in mind that each line of code contributes to your mastery of C. Stay tuned as we navigate this journey together. C programming offers loads of captivating concepts and applications that are all waiting for you to explore. Happy coding!