Boolean Length in MK2?

About Monkey 2 Forums Monkey 2 Programming Help Boolean Length in MK2?

This topic contains 2 replies, has 2 voices, and was last updated by  aleana 4 months, 3 weeks ago.

Viewing 3 posts - 1 through 3 (of 3 total)
  • Author
    Posts
  • #14696

    aleana
    Participant

    Can anyone tell me the exact length of a Boolean variable inside of Monkey 2?

    Different languages, different lengths, right?

    #14697

    abakobo
    Participant

    you can use libc.sizeof() to get the size of a variable

    On my mac machine it returns 1,4,8. So bool is one byte here…

    #14703

    aleana
    Participant

    Thank you very much, abakobo.

Viewing 3 posts - 1 through 3 (of 3 total)

You must be logged in to reply to this topic.