C Language - Functions with Arguments and without Return Value

 



#include <stdio.h>

#include <conio.h>

int sum (int a, int b, int c);

void printstar (int n)

{

int i;

for (i=0; i<n; i++)

{

printf ("%c", '*');

}

}


int main()

{

int a, b, c, d;

a=34;

b=483;

c= 3434;

d= sum (a,b,c);

printstar (32);

// printf ("The sum is %d \n ", d);

return 0;

}

// ScreenShots:



Comments

Popular Posts