Skip to main content

Timeline for Bang and Structs

Current License: CC BY-SA 3.0

8 events
when toggle format what by license comment
Jul 29, 2015 at 17:49 comment added ChrisG Just a note since you learned about typedef. In C there isn't actually the type bool. It's a typedef of int. And true is 1 and false is 0.
Jul 29, 2015 at 17:48 comment added ChrisG Yes you are correct.
Jul 29, 2015 at 17:44 comment added Gibb Johnson Just to be clear, bool misspelled = !check(word), if check runs and returns false, the bool variable misspelled would == true? and do you need the alias when using typedef? Thank you very much for your explanations.
Jul 29, 2015 at 17:43 vote accept Gibb Johnson
Jul 28, 2015 at 21:27 history edited ChrisG CC BY-SA 3.0
Added lines
Jul 28, 2015 at 21:26 comment added ChrisG Yes you are correct.
Jul 28, 2015 at 21:24 comment added Wiktor Czajkowski Have I understood correctly, that struct pc { ... } apc; will create single variable apc of type struct pc in that declaration's scope?
Jul 28, 2015 at 16:42 history answered ChrisG CC BY-SA 3.0