I read on a book of C Language "LET US C" that certain keywords can be used as an identifier but i don't know how. CAN ANY ONE HELP ?
Asked
Active
Viewed 50 times
-6
-
2Why would you want to do this? – Oliver Charlesworth Apr 12 '15 at 21:49
-
Could you quote the book where it says that "certain keywords can be used as an identifier"? – ouah Apr 12 '15 at 22:16
-
I have already mentioned it. – Aryan Dixit Apr 13 '15 at 10:31
-
LET US C by Yashwant Kanetkar. – Aryan Dixit Apr 13 '15 at 10:31
-
It says :"Some C compilers allow you to contruct variable names that exactly resemble the keywords.However,it would be safer /*Not Necessary */ not to mix up the variable names and keywords". Under "C Keywords" Page No. 11 - 10th Edition. – Aryan Dixit Apr 13 '15 at 10:36
1 Answers
1
You are not allowed to use a keyword as an identifier in C, with the exception of macro names and macro parameters.

ouah
- 142,963
- 15
- 272
- 331