Login or Sign Up
Logging in...
Remember me
Log in
Or
Sign Up
Forgot password or user name?
Log in with
Search in titles only
Search in posts by jtnshah only
Search
Advanced Search
Forums
BYTES
Product Launch
Updates
Developer Toolkit
Today's Posts
Member List
Calendar
Home
jtnshah
User Profile
Collapse
Profile Sidebar
Collapse
jtnshah
Last Activity: Jan 16 '13, 09:55 AM
Joined: Jan 3 '13
Location:
Subscriptions
0
Subscribers
0
Activities
About
Media
Subscribed
Filter
Time
All Time
Today
Last Week
Last Month
Show
All
Discussions only
Photos only
Videos only
Links only
Polls only
Events only
Source
All
jtnshah only
Visitor Messages Only
Advanced
Filtered by:
Clear All
new posts
jtnshah
started a topic
How to set each bit, if the variable is short
in
C
Jan 3 '13, 10:03 AM
How to set each bit, if the variable is short
i am using the below logic. but it gives me error when i am setting the bit_position 15 or 16. i suspect, the problem with the integer range.
please suggest.
Code:
short bit_map, bit_position bit_map = bit_map | ( 1 << bit_position )
See more
|
Go to post
Last edited by
Meetee
;
Jan 3 '13, 10:55 AM
.
Reason:
code tags <code/> added
No activity results to display
Show More
Working...
Yes
No
OK
OK
Cancel
👍
👎
☕