Thursday, Jan 17th

Last update12:59:40 PM GMT

What is a forward reference?

Write e-mail

Forward reference is a reference to a variable or function before it is defined or available to the compiler.


A cardinal rule of structured languages is that everything must be defined before it is used. Sometimes this is not possible. At times it is necessary to define two functions in terms of each other. One will obey the cardinal rule while the other will need a forward declaration of the former in order to know of the former's existence.

Share this post

Web Hosting