Friday 29 May 2009

First character of name of any function must be either alphabets or underscore in c




First letter or character of a function's name must be either an alphabet or underscore. If function name start from any digits or any other special character then we will get compilation error.



Example 1:



#include

int main(){

   int min=1,max=100;

   int sum;

   sum= _digit_(min,max);

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

   return 0;

}

int _digit_(int min,int max){

   int total;

No comments:

Post a Comment