Header Ads Widget

Ticker

6/recent/ticker-posts

Return Without Arguments In Function Of C language .

function type 3 :

 Return Without Arguments :

example :

write a function to sum two numbers :



 #include<stdio.h>

int sum();

void main()

{


        sum();


}

   int sum ()

    {

int a,b,c;

        printf("Enter two  number :");

        scanf("%d%d",&a,&b);

       printf("sum :%d",a+b);


       return(a+b);

    }



Post a Comment

0 Comments