Message from C, C++ talks

June 2019

— Yep

— I know, but if I could get it to work on windows 10 that would be cool and plus my mate with freak out lol

Message permanent page

— Wrong question

— German for example

— 

#include <stdio.h>

int main(){

print();

return 0;
}

void print(){

printf("Hello World! \n");

}

Someone here have idea where am i wrong ?

— Ur programm doesn't know about ur function

— Swap the order to begin with

— Put void print(); before int main

— Make its prototype before main
void print ();

— That's u're writing with phone ? :D

— Yea ! now it's working !

— Nop , it's look good ?

— The reason that’s not working is because you’re not allowed to put a function below the main function

Message permanent page

— Something very strange is that how i do not need to set functuin before main ?
how the hell it's working for me ?

Message permanent page

— Not u, Dima)