+ 1

how to call a function in another function?

if we have two functions one is main function and the other is anonymous n we want to call that anonymous function in main how it can be done?

16th Sep 2017, 5:44 PM
komal shehzadi
komal shehzadi - avatar
1 Antwort
+ 2
void anonymous(); // function declaration main() { anonymous(); // function call } void anonymous() { statements; } Just you have to write function name and put (); after that ☺️
16th Sep 2017, 6:32 PM
Vishesh