How do i go from one function (main) to another without finishing main?(in C) -
i beginner in c , there 1 problem can't seem solve. want go main() example, function line or 2 of code. have searched internet , nothing has answered specific question, or seems amateur eyes. example, want this:
int main(void){ /*here need line of code make program run functiontocall*/ } int functiontocall(void){ printf ("you went function! congratulations!\n"); }
i hope helps sorry unclear question!
i think in understanding how method call works
so when call method x method y control x passes y , return x when return statement/last statement of called method encountered
Comments
Post a Comment