zzg

Rochester, NY

zk.gd

Age: 23

Nov
28
awarded Constituent
Nov
28
awarded Caucus
Nov
3
awarded Popular Question
Sep
27
revised Pluto's gravitational pull on a person on the Earth's surface?
This was not a homework question.
Jul
2
awarded Curious
Jun
24
comment Is there a more optimal way to approach some of these bitwise functions?
~0u, at the very least, is necessary, to ensure it's unsigned. I did ~00u because 00 makes it octal, but according to posts below, it seems that ~0u is fine for C99 standard.
Jun
24
comment Is there a more optimal way to approach some of these bitwise functions?
bitpat_search() is being used to search for a bit pattern, so I'm not sure what a good return value would be if the caller lies. n is the width of pattern. I'm not sure why the exercise wanted this, you could just eliminate this parameter altogether, and I was confused as to why it was included.
Jun
24
awarded Supporter
Jun
24
awarded Scholar
Jun
24
comment Is there a more optimal way to approach some of these bitwise functions?
Thank you for the answer. :)
Jun
24
accepted Is there a more optimal way to approach some of these bitwise functions?
Jun
17
asked Is there a more optimal way to approach some of these bitwise functions?
Jun
16
comment Is there a more optimal way to approach some of these functions?
I'd use sizeof(int), but the exercises said to use my int_size(), which was another exercise. So, exercise 2 required me write my own int_size() function, and the next exercise says to use int_size() function for bit_get().
Jun
16
asked Is there a more optimal way to approach some of these functions?
Jun
14
revised How to let Dropbox treat symbolic link AS IT IS?
spelling correction
May
26
awarded Notable Question
May
22
awarded Autobiographer
Apr
21
awarded Notable Question
Mar
19
awarded Autobiographer
Mar
19
comment What is the best way to find the digit at n position in a decimal number?
To get the last digit: value % 10
1 2 3 4 5