Click here to Skip to main content
15,922,427 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
Hi Experts,

Can any one tell me how many keywords are there in C and C++.

When I searched for it, in one site I saw that its is 32(In C)-- "http://wiki.answers.com/Q/How_many_keywords_are_there_in_c", and in another site it is 36 (In C)-- "http://www.tenouk.com/Module2.html".

I am little confused about it.
Can anyone help me?


Regards

Arun
Posted
Updated 13-Apr-11 21:33pm
v4
Comments
Sandeep Mewara 14-Apr-11 1:31am    
And the reason to know this? Anything stopping you?

How will a number of keywords help you?
Sergey Alexandrovich Kryukov 14-Apr-11 12:35pm    
I answered; and I think mine is the only appropriate one...
--SA
Arun India 14-Apr-11 2:29am    
When I attend an interview, the Interviewer asked the same.. That why I asked it..
Niklas L 14-Apr-11 6:51am    
That is a strange thing to ask at an interview. At a geek get-together yes, but at an interview... hmm...
Sergey Alexandrovich Kryukov 14-Apr-11 12:29pm    
It happens this days pretty often. Companies or teams lead by idiots trying to hire more idiots.
--SA

Hi,

use these two sites and just count the number of keywords:
http://www.cppreference.com/wiki/keywords/start[^]
http://tigcc.ticalc.org/doc/keywords.html[^]
 
Share this answer
 
Comments
Dalek Dave 14-Apr-11 3:33am    
Good Links
Sergey Alexandrovich Kryukov 14-Apr-11 12:32pm    
I can seriously consider only one way to respond.
Please, see how I answered.
--SA
Espen Harlinn 14-Apr-11 16:47pm    
Nice reply, my 5
Different compilers will supports different keywords but a ANSI standard compiler will supports all the ANSI keywords and includes its own keywords.ANSI as a standard and give your answer.

Check This links for ANSI standard and other compilers additional keywords.

For C:(32 ANSI keywords)
http://c.comsci.us/etymology/keywords.html[^]

For C++:
http://cpp.comsci.us/etymology/keywords.html[^]
 
Share this answer
 
Comments
Dalek Dave 14-Apr-11 3:33am    
Good Answer.
Arun India 14-Apr-11 4:36am    
Thank You venkatmakam. This is the one which I searched..
Sergey Alexandrovich Kryukov 14-Apr-11 12:32pm    
I can seriously consider only one way to respond.
Please, see how I answered.
--SA
Espen Harlinn 14-Apr-11 16:48pm    
Nice reply, my 5
Arun India 15-Apr-11 0:24am    
Thanks all for your valuable reply..
Arun, run away from this company. If you're a good developer, or simply a clever person, you won't be able to work with those idiots anyway. If you're not, our Answers won't help you.

This is simple like that.

—SA
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900