function prototype declarations
- by sandy101
I am practice the function in c and come across to the program ....
#include<stdio.h>
int main()
{
float a=15.5;
char ch ='C';
printit(a,ch);
return 0;
}
printit(a,ch)
{
printf("%f\n%c",a,ch);
}
I want to know that why the above program compile and not give the error as i understood so for is ...
The function in c must be declared with the specific prototype (but this program does not contain the prototype)
why the program give the output 'x'for the char variable ?
can the function in c are capable of accepting the value without being declared about type in parameters like what has done in the function declaration ?