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:
#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 according 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
?