Pause the console window with getchar() function - C Language Basics

C examples for Language Basics:Hello World

Introduction

To use the GNU compiler

gcc myapp.c -o myapp.exe
./myapp.exe
Hello World

Demo Code

#include <stdio.h>

int main(void) {
  printf("Hello World");
  getchar();//w  w  w .j  a v  a2  s . c  o m
}

Related Tutorials