Friday 29 May 2009

Name of function includes only alphabets, digit and underscore in c




A function name in c can  have only alphabet,digits and underscore. If we will use any other characters in the function name then we will get a compilation error.

    

Example:



#include

int main(){

   int min=1,max=100;

   int sum;

   sum=sum ofdigit(min,max);

   printf("sum = %d",sum);

   return 0;

}

int sum of digit(int min,int max){

  int

No comments:

Post a Comment