does bool work in c(by this i mean a data type that can take only two states 0 or 1 in order to save memory)?
if yes then is it included in stdio or any other file is required to be included?
same doubt for c++
also mention the syntax for both!
mayankjain05
0
Newbie Poster
Recommended Answers
Jump to PostIt's
_Bool
, not _bool. Case matters. ;) But yes, if you use_Bool
,0
, and1
, then you don't need to include any headers.can u plzz give a small program or prototype so i can clearly understand the syntax!
...
This is C …
All 4 Replies
deceptikon
1,790
Code Sniper
Team Colleague
Featured Poster
mayankjain05
0
Newbie Poster
deceptikon
1,790
Code Sniper
Team Colleague
Featured Poster
mayankjain05
0
Newbie Poster
Be a part of the DaniWeb community
We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.