Tech Study

How to Print Hello World Program in C language?

How does the “Hello, World!” program operate? | Hello World Program in C

  • The preprocessor command #include instructs the compiler to include the contents of the program’s stdio.h (standard input and output) file.
  • Functions like scanf() and printf() that accept input and display output, respectively, are found in the stdio.h file.
  • The programme will not build if the printf() method is used without adding #include stdio.h>.
  • The main() function is where a C programme begins to run.
  • A library function called printf() is used to display formatted output on a screen.
  • Printf() in this programme prints the text Hello, World! on the screen.
  • The program’s “Exit status” is indicated by the return 0; statement.
  • The programme closes with this statement, to put it simply.

C Program to Print “Hello World!”. I have used Code:: Blocks compiler for debugging purpose. But you can use any C programming language compiler as per your availability.

#include <stdio.h>
int main()
{
   printf("Hello World!"); // printf() is use to display string
   return 0;
}

Result

Hello world program in c
C language Print Hello World Program

TaggedC language Print Hello World ProgramHello WorldHello World Program in C

Java Final keyword

Introduction : java final keyword The final keyword present in Java programming language is generally used for restricting the user. …

Read more

C++ Memory Management: new and delete

C++ Memory Management We know that arrays store contiguous and the same type of memory blocks, so memory is allocated …

Read more