python (65.1k questions)
javascript (44.2k questions)
reactjs (22.7k questions)
java (20.8k questions)
c# (17.4k questions)
html (16.3k questions)
r (13.7k questions)
android (12.9k questions)
How to store unsigned int value to unsigned char variable?
Suppose I have
unsigned int x = 0x12a
unsigned char y = 0x000
How can I make x = y? When I try to assign x to y, i get y = 0x02a
rickiestRick
Votes: 0
Answers: 0
How to read an Unsigned Char image file to Python?
I have an text file called with the extension '.image', at the top of the file is the following:
Image Type: unsigned char
Dimension: 2
Image Size: 512 512
Image Spacing: 1 1
Image Increment: 1 1
Imag...
user14909015
Votes: 0
Answers: 1
Char addition does not have expected result in C
Can someone explain me how is this at the end
a=?,b=?,c=-124
and not
a=?,b=?,c=132
This is code:
#include <stdio.h>
int main() {
char a = 'D', b='C', c='A';
a = c + 'D';
b = a + b + 'A...
mr fahrenheit
Votes: 0
Answers: 3
What does *= do?
Hey I am kinda new to C and I wanted to ask why this prints out 4 instead of 260?
#include <stdio.h>
int main()
{
unsigned char x = 130;
x *= 2;
printf("%d\n", x);
}
Alpha
Votes: 0
Answers: 5