Posts

A Simple C Program: Printing a Line of Text 1   /* NSBM 2  A first program in C */ 3   #include <stdio.h> 4  5  void main() 6  { 7     printf( "Welcome to C!\n" ); 8  } • Comments • Text surrounded by /* and */ is ignored by computer • Used to describe program
A Simple C program : Printing a Line of Text /*this is my first -comments program in C */-comments #include <stdio.h>-preprocessor directive int main()-method { printf("Welcome to C \n");-escape character return 0;-return value }

programming C

     History of C C language was developed by an American computer programmer Dennis Ritchie. C evolved from two previous languages, BCPL and B was developed in 1967 by Martin Richards as a language for writing operating systems software's and compilers. C is a hardware independent. With careful design, it is possible to write C programs that are portable to most computers.