i am taking input from user but i am getting wrong output how i modify i*** error ...
i am taking input from user but i am getting wrong output how i modify i*** error ...
I have this struct with 2 attributes (one char and one int, for a memory usage of 3 bytes: I try overload the operators << and >> for t ...
#include <stdio.h> int main() { unsigned char c = (int) 0.54; for(; c++; printf("%d", c)); printf("%d", c); return 0; } And ...
I'm trying to fit my C++ app to a C-API. The API in question is mbed_tls which contains a base64 decoder: The problem is that I'm arriving in site ...
I have an text file called with the extension '.image', at the top of the file is the following: I believe this to be an unsigned char file, but i' ...
Can someone explain me how is this at the end and not This is code: ...
Hey I am kinda new to C and I wanted to ask why this prints out 4 instead of 260? ...
The following code has several issues - for which I'm kindly asking for your input / corrections / feedback - of various types: first, I can't get it ...
I have the following piece of code: input_items is basically the contents of a binary file. Now a[0] = 7, and i want to convert this value to unsi ...
I am trying to learn image processing using c. I came across the line which i couldn't understand. Why can't we simply do the type casting like ...
I have a function that takes as input an array of unsigned char (16 values exactly) and creates a GUID (from GUID struct) by parsing all values to hex ...
Say for instance I have this unsigned long long int: How could I convert test_int into the following unsigned char* array: Similar to this quest ...
Does anyone know of a library that provides a function that performs this logic or perhaps a method to perform this logic? I'm trying to convert: ...
A char data type is not guaranteed to be signed, which means on some implementations it is signed, and on others it is unsigned. So why do people alwa ...
I have the following 2D vector: I also have the following unsigned char array: When I push_back this array to dates it sets all the unsigned cha ...
I have a 3rd party x.dll and an export function which is named as "GenerateKeyEx-in C". I do not have any additional info such as .lib, header etc. I ...
I am trying to figure out, how to use an unsigned char type of a variable inside a for loop, while not "breaking" out of range for unsigned char, whic ...
I am trying to iterate over a single const unsigned char array and assign/convert each element to a new char array using typecasting, every thread I'v ...
I have a unsigned char array like this: I am using reinterpret_cast to covert it to const char* as I have to pass a const char* to a method. This i ...
So I have no idea why this behavior is observed: If I remember correctly %hhu is for unsigned char. If I input almost any character like a, or b th ...