Pages

Showing posts with label Write a First Programe in C. Show all posts
Showing posts with label Write a First Programe in C. Show all posts

Saturday, 13 December 2014

Write a First Programe in C

#include<stdio.h>
 int main()

 {

  printf(“Hello World\n”);

  return 0;

 }

Save the program with .c Extension ..such as abc.c

  

#include<stdio.h>

With this line of code we include a file called stdio.h. (Standard Input/Output header file). This file lets us use certain commands for input or output which we can use in our program. (Look at it as lines of code commands) that have been written for us by someone else). For instance it has commands for input like reading from the keyboard and output commands like printing things on the screen.