[interfacekit] HELP!
- From: Adi Oanca <adioanca@xxxxxxxxx>
- To: Interface Kit Team <interfacekit@xxxxxxxxxxxxx>
- Date: Tue, 17 Feb 2004 23:12:58 +0200
Hi!
I encountered this sample and I can't understand what it does! I
searched(my archive of C books) but found no references to something
like this, so PLEASE help me understand what this means and what happens
here...
#include<stdio.h>
struct test{
unsigned a:1, b:2, c:3;
};
void main(){
struct test x;
x.a = x.b = x.c = 7;
printf("%d %d %d\t", x.a, x.b, x.c);
x.c = x.a = x.b = 7;
printf("%d %d %d", x.a, x.b, x.c);
}
The result is: 1 3 7 1 3 1.
What's the meaning of: a:1, b:2, c:3 ?
Thank you,
Adi.
---------------------------------------------------------------
Cauta-ti perechea pe http://dating.acasa.ro
- Follow-Ups:
- [interfacekit] Re: HELP!
- From: Erik Jaesler
Other related posts:
- » [interfacekit] HELP!
- » [interfacekit] Re: HELP!
- » [interfacekit] Re: HELP!
Thank you, Adi.
- [interfacekit] Re: HELP!
- From: Erik Jaesler