View Single Post
Old 09 April 2020, 11:55   #4
Thomas Richter
Registered User
 
Join Date: Jan 2019
Location: Germany
Posts: 3,300
Quote:
Originally Posted by Nightshft View Post
Is it possible to forward functions and statements (so they are found even at the end of the code)?
Yes, of course. That's a "prototype". For that, just write the function header, but omit the body of the function:
Code:
 int foo(int arg1,double arg2); ... int bar(..) {  foo(1,42.0); /* use foo */ } ... int foo(int arg1,double arg2) { /* implement foo */ }
Thomas Richter is offline  
 
Page generated in 0.04439 seconds with 11 queries