[Ilugc] [Technical] Does 'C' language specification has 'boolean' datatype ?

  • From: akilan27@xxxxxxxxx (Akilan R)
  • Date: Sat, 17 Dec 2011 11:46:15 +0530

On Sat, Dec 17, 2011 at 11:10 AM, Selvakumar Rajeswaran <selva_rsr at yahoo.com

wrote:

Does 'C' language specification has 'boolean' datatype ?


Unless you are dealing with an ancient compiler, answer is yes. <stdbool.h>
defines standard macros that takes care of compatibility issues too in case
you are using old code that defines 'bool' differently.

This explains its usage and advantages:
http://www.jacquesf.com/2011/04/in-defense-of-the-c99-boolean-type/

-- 
?????? (Akilan R)
[ blog.akilan.in ]
*I should have no use for a paradise in which I should be deprived of the
right to prefer hell.*
  --Jean Rostand

Other related posts: