Replies
Welcome, guest
Join CrazyEngineers to reply, ask questions, and participate in conversations.
CrazyEngineers powered by Jatra Community Platform
-
@rahul69-97fAOs • Nov 21, 2016
jasim92how 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. -
@jasim-g7mjUs • Nov 23, 2016
rahul69The 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
-
@dmankit-75MpjN • Nov 24, 2016
The output of this code is:
1 2 -3
As int use signed integers, so 13 get converted into -3.