Friday 29 May 2009

Name of function cannot be register Pseudo variables




Register pseudo variables are reserved word of c language. So we cannot use these word as a name of function otherwise it will cause of compilation error.



#include

int main(){

   int c;

   c=_AL();

   printf("%d",c);

   return 0;

}





int _AL(){

   int i=5,j=5;

   int k=++j + ++j+ ++j;

   i=++i + ++i+ ++i;

   return k+i;;

}



No comments:

Post a Comment