prototype in c

Solutions on MaxInterview for prototype in c by the best coders in the world

showing results for - "prototype in c"
Juan Sebastián
22 Jun 2016
1You use a prototype to tell the computer that a function 
2exists before you create it.
3
4Code example:
5
6#include <stdio.h>
7// protoype
8void function(); 
9
10int main(void) {
11  function();
12}
13
14// our function is after the int main void to makr the code cleaner
15void function(){
16  printf("This is a function");
17}
18