-
Function ?
Hey All !
OK the standard format for defining a function:
Code:
typeName functionName(parameterList)
{
statements
return value; // value is of type typename
}
would this also be legal for defining a function?
Code:
typeName functionName(int a, int b)
{
return (a + b); /* define the arguments here for use
let's say by a main function that
the user input a & b */
}
-
-
Thanks Mr Wizard..........:)
-
Of course you could have simply compiled the code. I guess the compiler would have complained if it was not valid =)
-
darksaidin :
Touche : :eek: Your right...would have learned more that way ........Teeyester :rolleyes: