+ 1
function
any
2 odpowiedzi
+ 3
Function is mainy used for, When we want same lines or same steps are repating many time. we can make that line as in one fuction, and we call that function instead of that repating lines. It helps to save our memory , reduce the no of lines and all.
+ 2
void sayHi()
{
cout << "Hi";
}
int main()
{
sayHi();
}
This is an example of a function.