Learn C Function by Example 2 : Name of Function Cannot be Keyword of C

Basic Note :
[arrowlist]

  • Function name should not be Keyword
  • In C there are 32 keywords.
  • 32 keywords are valid identifier.
  • These 32 words should not be used for function name.
  • However we can use these words by changing case.
[/arrowlist]

Example :
We can use following -
[crosslist]

  • Int
  • cHar
  • Break
  • conTinue
[/crosslist]

Learn by Program : Valid Example

#include<stdio.h>
void break();
int main()
{
   break();
}
void break(){
   printf("Hello World");
}

Output :

Compile error