Recent Changes - Search:

Oktatás

* Programozás 1
  + feladatsor
  + GitHub oldal

* Szkriptnyelvek
  + feladatsor
  + quick link

Teaching

* Programming 1 (BI)
  ◇ exercises
  ◇ quick link

teaching assets


Félévek

* 2025/26/2
* archívum


Linkek

* kalendárium
   - munkaszüneti napok '20
* tételsorok
* jegyzetek
* szakdolgozat / PhD
* ösztöndíjak
* certificates
* C lang.
* C++
* C#
* Clojure
* D lang.
* Java
* Nim
* Nim2
* Scala


[ edit | logout ]
[ sandbox | passwd ]

Forward declaration

forward declaration
#include <stdio.h>

void hello();    // signature with ';' at the end

int main()
{
    hello();

    return 0;
}

void hello()
{
    puts("hello world");
}
proc hello()    # signature without '=' at the end

hello()

proc hello() =
  echo "hello world"

Forward declaration works just like in C.

If you build your code bottom-up, then forward declaration is not necessary.

proc hello()

𝥶It's just a declaration (no body, i.e. no implementation).

proc hello() =

𝥶It's a definition. The '=' sign indicates that you want to define the procedure, i.e. you also provide the body (implementation) of the procedure.

Cloud City

  

Blogjaim, hobbi projektjeim

* The Ubuntu Incident
* Python Adventures
* @GitHub
* heroku
* extra
* haladó Python
* YouTube listák


Debrecen | la France


[ edit ]

Edit - History - Print *** Report - Recent Changes - Search
Page last modified on 2026 April 03, 23:35