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 worksenter image description here

so when call method x method y control x passes y , return x when return statement/last statement of called method encountered


Comments

Popular posts from this blog

plot - Remove Objects from Legend When You Have Also Used Fit, Matlab -

java - Why does my date parsing return a weird date? -

Need help in packaging app using TideSDK on Windows -