Write in C programming for Hello World!

Write in C programming for Hello World!
The-program-in-C-for 'Hello World'


Theory:

First of all, you have to choose a compiler to execute your C program. It's can be an online or offline compiler. For an online compiler, you just search for it on google and choose what you like most. On the other hand for the offline compiler, Code::Blocks IDE is more preferable in those days for computer science students.

For your first program in C language need to know some basics like library function, datatype initialization, input scanning, output printing for displaying the final result.

Library functions:

  1. #include <stdio.h>
  2. #include <stdlib.h>
Here stdio.h for standard input and output functions.

Datatype:

Not applicable for basic Hello World! program in C.

Input function:

Not needed for basic Hello World! program in C.

Output function:

printf(" ");

Input:

Hello World! //This is a string input

Output:

Hello World! //This is a string output


Source Code:

//Hello World! program
#include <stdio.h>
#include <stdlib.h>

int main()
{
    printf("Hello world!\n");
    return 0;
}

Output:

Hello World!

Post a Comment

Don't Post Any Spam Content!!!!

Previous Post Next Post