C Hello World Program
Overview
C is a popular programming language. It is reliable, simple, and easy to use. We would write the first C program in this post i.e to print Hello World.
The IDE used is Code::Blocks.
To Download and Install Code::Blocks IDE:
https://www.testingdocs.com/download-and-install-codeblocks/
C Program
#include <stdio.h> /* * Program to say Hello World... */ int main() { printf("*****************n"); printf("Hello World!!n"); printf("*****************n"); return 0; }
Comments are enclosed within /* */. Program description and information can be included in comments. It is a good practice to begin a program with a comment indicating the purpose of the program, its author and date etc.
main() and printf() are functions in C. For example, printf() function is used to display content on the screen. Mostly printf is to print values in variables.
The general form of printf( ) function is:
printf ( “
Program Output
*****************
Hello World!!
*****************
External Link
Code::Blocks Offical website
For more information on Code Blocks IDE, visit the official website of Code blocks IDE: