Search
 
SCRIPT & CODE EXAMPLE
 

C

user define function in c


#include<stdio.h>

int add (int,int);
int mul(int);

main()

{
  
  int a=4,b=8,sum;
  sum= add (a,b);
  int m=mul(sum);
  printf("%d 
",sum);
 
  printf("%d
",m);
  
}
int add (int x,int y)

{
  
 int sum=x+y;
 
 
  return sum;
}

int mul(int x)

{
  
  int mul = x*x;
  return mul;
}
Comment

PREVIOUS NEXT
Code Example
C :: Happy birthday in C 
C :: text to hex in C 
C :: print 100 times c 
C :: print in c 
C :: Create the static library libmy.a containing all the functions listed below: 
C :: tuples in c 
C :: enum case statement in c 
C :: print the name of a file c 
C :: C# special character display 
C :: majuscule en c 
C :: english to russian translation 
C :: how to read and write to fiel n c 
C :: north austin weather 
C :: lxde automatic login 
C :: setw in c 
C :: C/c drop mime 
C :: Answer to storing information in array 
C :: google business customer care number india 24/7 
C :: send an array through a pipe 
C :: error: invalid type for iteration variable ‘i’ #pragma omp parallel for 
C :: sum of fibonacci series in c 
C :: Multi Select with icons htm; 
C :: uri/beecrowd problem no - 1133 solution in C 
C :: variadic macros c 
C :: Odd-Even-inator with function in C 
C :: os.listdir to array 
C :: or gmode inline image 
C :: dynamic stack in c 
C :: in C char to string 
C :: printf n characters c 
ADD CONTENT
Topic
Content
Source link
Name
4+8 =