1...The given code has no prototype declaration for the function 'printer', but it still compiles. Is the prototype of a function optional?
2...The result on running is a huge real number with many zeros?
3...The code doesn't build if i change the parameter of 'printer' to 'float num'?
(though the current code compiles fine)
Code:
#include <stdio.h>
int main() {
// int printer(double); -----------> i removed the prototype declaration
printer(10);
return 0;
}
int printer(double num){
printf("Hello! %f ",num);
return 0;
}