C
Che
Hi,
I am just curious if anybody ever used a pointer to an integer(any
datatype) and then manipulate the same with bitwise operators.
For example
short int *ptr;
short int q;
int final;
ptr=&q;
final=*ptr & 0xff;
This is just one vague example. I am curious to know if their are any
instances in real time programing where you may have to point to a
register/variable and then manipulate the same using bitwise
operators.
Please elaborate with a more realistic example. Will appreciate it.
Thanj you for the time.
Che
I am just curious if anybody ever used a pointer to an integer(any
datatype) and then manipulate the same with bitwise operators.
For example
short int *ptr;
short int q;
int final;
ptr=&q;
final=*ptr & 0xff;
This is just one vague example. I am curious to know if their are any
instances in real time programing where you may have to point to a
register/variable and then manipulate the same using bitwise
operators.
Please elaborate with a more realistic example. Will appreciate it.
Thanj you for the time.
Che