0

Can anyone tell me, what is d syntax of "calling function"??

15th Mar 2017, 2:20 AM
Akella srinivas
Akella srinivas - avatar
2 Respostas
0
generall syntax for function calling is your function name followed by paranthasies for example I have a function "void hello()" it is not tacking any arguments and not returnning any value to call this function you have to use syntax like this in your main "hello ()" for example I have a fun "int sum (int a ,int b)" it is calculating some of two integers and returning the sum so you have to pass two integers to your fun like this sum (10,30) function prototype :return data type function_name (argument list)
15th Mar 2017, 3:10 AM
Swamy Kanuri
Swamy Kanuri - avatar
0
C++ uses "dot notation" to call the methods of a class I.e. SomeClass.CallMethod()
15th Mar 2017, 5:27 AM
WiLY
WiLY - avatar