number « hex « C Data Type Q&A

Home
C Data Type Q&A
1.binary
2.bit
3.byte
4.char
5.character
6.decimal
7.Development
8.float
9.hex
10.integer
11.prime
12.random
13.struct
C Data Type Q&A » hex » number 

1. How to translate these hex numbers into bitwise values?    stackoverflow.com

I'm looking through the source code of a project written in C. Here is a list of options that are defined (no these aren't the real defines...not very descriptive!)

...
#define OPTION_5  ...

2. iterating through hex numbers in c    cboard.cprogramming.com

3. Question on hex numbers.    cboard.cprogramming.com

4. How to for() loop with hex numbers?    cboard.cprogramming.com

$ cat example.c #include int main (void) { unsigned long long int flags; int i; flags = 0; flags |= (1 << 2); flags |= (1 << 21); flags |= (1 << 49); flags |= (1 << 63); for (i =0; i<=63; i++) { if ( ( flags & (1 << i ) ) != 0 ) printf ("bit %i ...

5. Examine hex number?    cboard.cprogramming.com

#include int main() { int halt=0; FILE *file=fopen("file", "r"); unsigned char byte; while ((fread(&byte,1,1,file))) { /* true until EOF */ switch (byte) { case (0xcd): /* notice: 1,1 means one byte at a time */ fread(&byte,1,1,file); printf("INT %d\n",(int)byte); break; case (0xf4): halt=1; break; default: break; /* could use this for something too */ } if (halt==1) break; /* still more ...

6. Mysterious hex numbers    forums.devshed.com

HI, i have what at the moment, seems to be a very odd problem. Basically, i've written a piece of c code that is executable from a Virtual DOS box. What is does is display the hex contents (max 10 characters) of each file that it finds in a particular directory given via the command line, e.g. show "directory path". My ...

7. Actual Decimals and Numbers in Hex    forums.devshed.com

I'm currently sending a protocol over udp using c. My question is if I have a float that equals say 0.5324 and I have 4 bytes of hex that I must send that number over udp in. What would the hex numbers be? What is the 4 byte representation in hex of a float that equals 0.5324 or 0.23 or -0.43 ...

java2s.com  | Contact Us | Privacy Policy
Copyright 2009 - 12 Demo Source and Support. All rights reserved.
All other trademarks are property of their respective owners.