Friday 29 May 2009

Name of function cannot be any keyword of c program




In c programming language a function name cannot be any keyword of c language. Function name can be keyword of c++ but it is bad practice. If function name is keyword of c language we will cause of compilation error.



Example:



#include



int main(){

   int num,count;

   printf("\nEnter a number:");

   scanf("%d",&num);

   count=interrupt(num);



No comments:

Post a Comment