What are function calls in C?

395 views

What are function calls in C?

In: 1

3 Answers

Anonymous 0 Comments

Function calls in any programming language is the identical concept to a function call you learned in math class. You should be familiar with the trigonometric sin() function. Using it in an expression x = sin(42) is the same on a math test as in code. You can define your own functions such as foo(x) = x+1 as a reusable expression for use elsewhere in your maths. In programming, it is more common to see piecewise functions or functions containing multiple statements. The function definition syntax between maths and code is different but has a lot in common.

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