What are function calls in C?

394 views

What are function calls in C?

In: 1

3 Answers

Anonymous 0 Comments

For this you need to understand functions first

Functions are basically a set of instructions which are clumped together with a certain name given to them

This helps in preventing code from getting too repetitive. Say you have to do a certain calculation 5 times in your program. You could write all the code for the calculation every single time, but that would be very very repetitive. And what if you want to change how that calculation works now? You’ll have to go to all those places in your program and change the code there, again and again

Function calls are lines of code which run the function. C provides you some functions already (such as printf, scanf etc) (which are included in what’s called a standard library), or you can also make your own functions.

You are viewing 1 out of 3 answers, click here to view all answers.