unsigned
Testing for a maximum unsigned value
Is this the correct way to test for a maximum unsigned value in C and C++ code: if(foo == -1) { // at max possible value[详细]
2023-02-01 02:49 分类:问答Is there a benefit in using unsigned long for timeval members?
I noticed some programmers 开发者_如何学运维use unsigned long for tv_sec and tv_usec [when they copy them or operate with them] of timeval while they are defined as simply long.[详细]
2023-01-31 03:02 分类:问答Unsigned Int in Java
I\'m trying to implement an existing network protocol which makes heavy use of Unsigned datatypes, which are not supported by Java. What I currently do is for each datatype, chose the next bigger one[详细]
2023-01-30 22:14 分类:问答Difference between signed / unsigned char [duplicate]
This question already has answers here: What is an unsigned char? (16 answers) char!=(signed char), char!=(unsigned char)[详细]
2023-01-29 01:33 分类:问答Can we make unsigned byte in Java
I am trying to convert a signed byte in unsigned. The problem is the data I am receiving is unsigned and Java does not support unsigned byte, so when it reads the data it treats it as signed.[详细]
2023-01-26 12:48 分类:问答Casting between signed and unsigned
Is this safe: int main() { boost::int16_t t1 = 50000; // overflow here. boost::uint16_t t2 = (boost::uint16_t)t1;[详细]
2023-01-26 12:10 分类:问答unsigned becomes signed in if-statement comparisons?
I have searched this site for an answer and found many responses to unsigned/signed comparison but this problem is that only unsigned parameters are compared but still it works funny.[详细]
2023-01-26 01:43 分类:问答Difference between signed and unsigned 16bit BCDs?
How do you tell the differe开发者_如何学运维nce? For example, say you have 0110 0101 1001 0011.[详细]
2023-01-24 05:59 分类:问答C: performing signed comparison in unsigned variables without casting
i want a function with the following signature: bool signed_a_greater_than_signed_b(unsigned char a, unsigned char b);[详细]
2023-01-23 03:31 分类:问答double precision integer subtraction with 32-bit registers(MIPS)
I am learning computer arithmetic. The book I use(Patterson and Hennessey) lists the below question. Write mips code to conduct double[详细]
2023-01-20 06:03 分类:问答