Sujet : what you can do with bitfields De : profesor.fir (at) *nospam* gmail.com (fir) Groupes :comp.lang.c Date : 28. Nov 2024, 14:39:43 Autres entêtes Organisation : i2pn2 (i2pn.org) Message-ID :<a5a595ec2b0139d6976cea0e633fc911e38f9f58@i2pn2.org> User-Agent : Mozilla/5.0 (Windows NT 10.0; WOW64; rv:91.0) Gecko/20100101 Firefox/91.0 SeaMonkey/2.53.19
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; ?