New course! Every coder should learn Generative AI!
Try a free lesson0
How to define function in c++
3 Answers
+ 3
or bool
+ 1
int function( int a){
return a+1;
}
0
returnType nameOfFunction ()
{
}
return type can take int, float, char, double or void