0
How to identify function
2 Answers
+ 2
function usually has following syntax
access_modifier function_name(){
//your code goes here
}
+ 1
eg:-
//create function
int add (int a)
{
cout << ++a;
return 0;
}
//using function
int main()
{
add(2);
return 0;
}
//prints 3