Give an example of a built-in-function and any user-defined function?

Showing Answers 1 - 1 of 1 Answers

Built-in function are the functions which are already present in the standard library files and they can be accessed directly
Example sqrt(),round() etc...

.sqrt()
the above example returns the correctly rounded positive square root of the given value.

The functions which are created by user for program are known as User defined functions.
Example:
void add()
{
int a, b, c;
clrscr();
printf("
Enter Any 2 Numbers : ");
scanf("%d %d",&a,&b);
c = a + b;
printf("
Addition is : %d",c);
}
void main()
{
void add();
add();
getch();
}
Here void add is a used defined function.

  Was this answer useful?  Yes

Give your answer:

If you think the above answer is not correct, Please select a reason and add your answer below.

 

Related Answered Questions

 

Related Open Questions