#include // Needed to perform IO operations * First C program that says Hello (Hello.c) You should choose a filename which reflects the purpose of the program. ![]() A C source file should be saved with a file extension of ". ![]() Step 1: Write the Source Code: Enter the following source codes using a programming text editor (such as NotePad++ for Windows or gEdit for UNIX/Linux/Mac) or an Interactive Development Environment (IDE) (such as CodeBlocks, Eclipse, NetBeans or MS Visual Studio - Read the respective "How-To" article on how to install and get started with these IDEs).ĭo not enter the line numbers (on the left panel), which were added to help in the explanation. ![]() Let's begin by writing our first C program that prints the message "Hello, world!" on the display console: Hello, world! Getting Started - Write your First Hello-world C Program
0 Comments
Leave a Reply. |