CASE A:
CASE A:
#include<stdio.h>
int divide( int a, b)
{ return 7; }
int main() {
int a=divide(8,3);
printf("%d",a);
return 0;
}
CASE B :
CASE B :
#include<stdio.h>
int divide( a, b)
{ return 7;
}
int main()
{ int a=divide(8,3);
printf("%d",a);
return 0; }
why is CASE A an error and CASE B error free , in CASE B acc to c99 standard it assumes the variables to be of type int but then why not in case A , why is the type of b not considered to be of type int ?
why is CASE A an error and CASE B error free ,
in CASE B acc to c99 standard it assumes the variables to be of type int but then why not in case A , why is the type of b not considered to be of type int ?