Function- No Return With Argument Passing


/*   No Return With Argument Passing
*/

 #include<stdio.h>
 #include<conio.h>

  void main ()
 {

     int a;
      clrscr();

   void square(int); // Prototype or declaration

      printf("** This Program Will Demonstrate the No Return With Argument"
		 "  based Function  ** \n");

	 printf("Enter A No. Whose Square You Want");
	 scanf ("%d",&a);

	 square(a);// Calling Of Function

	 printf(" You have just seen the Square of a No.\n "
		"   Enter Any Key To Exit ");
	 getch();
  }

  void square( int b)

  {

    printf("The square of %d is %d\n\n",b,b*b);

  }

Output

With-Arguments-With-No-Return-value 
 



Facebook Likes

Youtube