C Language - Functions With Arguments and With Return Value

 



#include <stdio.h>

#include <conio.h>

int sum (int a, int b)

{

return a + b;

}

int main()

{

int a, b, c;

a = 34;

b = 342;

c = sum(a, b);

printf ("The sum of this is %d \n", c);

return 0;

}


// ScreenShots:




Comments

Popular Posts