Deutsch   English   Français   Italiano  
<a5a595ec2b0139d6976cea0e633fc911e38f9f58@i2pn2.org>

View for Bookmarking (what is this?)
Look up another Usenet article

Path: ...!eternal-september.org!feeder3.eternal-september.org!i2pn.org!i2pn2.org!.POSTED!not-for-mail
From: fir <profesor.fir@gmail.com>
Newsgroups: comp.lang.c
Subject: what you can do with bitfields
Date: Thu, 28 Nov 2024 14:39:43 +0100
Organization: i2pn2 (i2pn.org)
Message-ID: <a5a595ec2b0139d6976cea0e633fc911e38f9f58@i2pn2.org>
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8; format=flowed
Content-Transfer-Encoding: 7bit
Injection-Date: Thu, 28 Nov 2024 13:39:49 -0000 (UTC)
Injection-Info: i2pn2.org;
	logging-data="317570"; mail-complaints-to="usenet@i2pn2.org";
	posting-account="+ydHcGjgSeBt3Wz3WTfKefUptpAWaXduqfw5xdfsuS0";
User-Agent: Mozilla/5.0 (Windows NT 10.0; WOW64; rv:91.0) Gecko/20100101
 Firefox/91.0 SeaMonkey/2.53.19
X-Spam-Checker-Version: SpamAssassin 4.0.0
X-Mozilla-News-Host: news://i2pn2.org:119
Bytes: 1189
Lines: 9

i use them but i never fully chcked what i can do with them
can i say define a structure that is 8 bit size define two
bitfields say high and low for high 4 bits and low four bits then do 
somethiong liek that

T a,b; //thuis struct mentioned
a.high = b.low;
a.low = b.high;

?