Q:
Warning implicit declaration of function?
Answer
Function: A Function is a block of statement which perform some operation.
Declaring the function before using the function in program is known as implicit declaration of the function.
For Example::
int bar(void); // function (forward) declaration
int main(void) {
bar(); // bar was declared, the compiler has all the info
return foo(123); // foo not yet known; impl. decl. warning
}
// not previously declared function definition
int foo(int a) {
return a;
}
// previously declared function definition
int bar() {
return 321;
}
View answer
Workspace
Report Error
Discuss