Search This Blog

Friday, October 7, 2011

Write a program to illustrate function prototype

   1:  #include<stdio.h>
   2:  #include<conio.h>
   3:  void greetings();
   4:  void bestwishes();
   5:   
   6:  void main()
   7:  {
   8:  greetings();
   9:  bestwishes();
  10:  getch();
  11:  }
  12:   
  13:  void greetings()
  14:  {
  15:  printf("Greetings Welcome\n");
  16:  }
  17:   
  18:  void bestwishes()
  19:  {
  20:  printf("Wish you pleasent session");
  21:  }

No comments:

Post a Comment