+ 1

function

any

19th Aug 2016, 4:24 PM
Anusuya.P a
Anusuya.P a - avatar
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.
20th Aug 2016, 4:33 AM
Muhammed cp
Muhammed cp - avatar
+ 2
void sayHi() { cout << "Hi"; } int main() { sayHi(); } This is an example of a function.
19th Aug 2016, 7:59 PM
Cohen Creber
Cohen Creber - avatar