Skip to content
Sign upLog in
Profile icon

ZachT78

@ZachT78
Repls
Community
ZachT78
ZachT78
shared a Post
3 years ago
Functions not working on repl.it
I am writing a C program using functions, and Repl.it will not allow me to create them (Function definition is not allowed here), however they will wo
P_CW_027
C
mwilki7
mwilki7
I don't understand the syntax of defining functions inside functions. You should define functions in the main scope of the file, i.e. outside of any other function. int main() { int f1() { // no! } } int main() { } int f1() { // yes } `3 years ago