CrazyEngineers
Howdy guest!
Dear guest, you must be logged-in to participate on CrazyEngineers. We would love to have you as a member of our community. Consider creating an account or login.
Replies
  • rahul69

    MemberNov 21, 2016

    jasim92
    how this program of C works and what is the output
    The code given is an example of bit manipulation in C.
    The first element of the structure is assigned a space of 2 bits and next two are given 4 bits each.
    Since int is used (signed integers), the output will be 1,2,-3.
    Are you sure? This action cannot be undone.
    Cancel
  • Jasim Chouhan

    MemberNov 23, 2016

    rahul69
    The code given is an example of bit manipulation in C.
    The first element of the structure is assigned a space of 2 bits and next two are given 4 bits each.
    Since int is used (signed integers), the output will be 1,2,-3.
    Thank you Rahul
    Are you sure? This action cannot be undone.
    Cancel
  • dmankit

    MemberNov 24, 2016

    The output of this code is:
    1 2 -3
    As int use signed integers, so 13 get converted into -3.
    Are you sure? This action cannot be undone.
    Cancel
Home Channels Search Login Register