??? 09/10/12 10:48 Read: times Msg Score: -1 -1 Looks like homework |
#188286 - Different variable bit merge into single variable? |
Hello friends,
I have doubt regarding C programming. i have 2-3 variable(8bit), i want to merge individual bits into another single variable. for example: var1 => D7 D6 D5 D4 D3 D2 D1 D0 var2 => D7 D6 D5 D4 D3 D2 D1 D0 var3 => D7 D6 D5 D4 D3 D2 D1 D0 CAN I MERGE FEW BITS OF EACH VARIABLE INTO SINGLE VARIABLE ? MEANS......... final_var => D7 D6 D5 D4 D3 var3.D6 var2.D4 var1.D7 D0,D1,D2 of final_var is now D7 of var1, D4 of var2 and D6 of var3, respectively i want to access (r/w) thouse bits via final_var variable...... is it possible? |
Topic | Author | Date |
Different variable bit merge into single variable? | 01/01/70 00:00 | |
Of course | 01/01/70 00:00 | |
its bit addressable.... | 01/01/70 00:00 | |
No | 01/01/70 00:00 | |
just want to check... | 01/01/70 00:00 | |
What was missing in the answers you have already received? | 01/01/70 00:00 | |
no defined bit order | 01/01/70 00:00 | |
Just use C expression | 01/01/70 00:00 | |
what is wrong with IE? | 01/01/70 00:00 | |
Right!!!!!!!!!! | 01/01/70 00:00 | |
gobbledygook | 01/01/70 00:00 |