Hi, this is Mike McMillan, and in this lesson, I'm going to demonstrate some uses of functions that are already built in to see before we launch into our own discussion of how to create user defined functions. So, I'm gonna look at a couple of functions from the math world and from the string world just to give you an idea of what functions are and really to kind of talk about how functions work and why we need them. First, let's look at a math function, and we looked at these a little bit before. We'll do the first one. Now, what I'm gonna do is print out results. So, this first example is the square root function. The square root function takes a number as its argument and returns the square root of that number. So, let's talk a little bit about definitions. Many functions take arguments, in other words, which is the data that we pass into a function to perform some task. So, square root always takes the numbers, since that's what we're trying to compute the square root of. Arguments to functions are always enclosed in parentheses. Those parentheses are actually called the function call operator. So, parentheses are actually an operator. You can't manipulate that in C, but in C++, you can actually define your own function call operations, but for now, just to understand that function arguments have to be placed inside parenthesis, and then the result of square root nine will be the return value. The function like square root is called a value-returning function, and that value, the value that it computes, the square root is what gets returned from the function back to the calling program. So, that's going to be stored right here. I could also put it in a variable just like that. So, we talk about value-returning functions having a value that it returns and an argument that is passed into it, and some functions have more than one argument. So, when we run this program, we should see three as the result, 3.0, as a result of what we saw in the printf statement, and then, of course, that will also be the value that's stored in the variable sq. Another example is absolute value. So, again, absolute value is a mathematical argument that takes a number and returns that number's absolute value. So, in this case, the value that's gonna be stored in the variable abval is one, because the absolute value of negative one is one, and, again, that's an example of a value-returning function. On the string side, we have a function called strlen, or most people call that string length. Strlen, or stringlen, takes a string as it's argument and returns the number of characters in that string. So, we'll count one, two, three, four, five, six, seven, eight, nine, 10, 11, 12. I count 13. Let's comment out our code from earlier, and run that, and there's our 13. So, that's another example of a value-returning function. Now let's look at one more function that's value-returning. And again, to save time, I'm not gonna print this out, because that's not the point. The point, I just wanna show you an example of a different function that has two arguments this time. Strcat, or string concatenate, takes a string as its first argument, and concatenates the second argument to it, to give us one string that consists of the original string and then the added string. That's another example of a value-returning function. So, that wraps up this video on some function examples to try to get you some insight and some familiarity with how functions work. In my next video, we're gonna get into actually creating our own user-defined value-returning functions. These are functions that will take an argument and return a value from the function.