python (12.9k questions)
javascript (9.2k questions)
reactjs (4.7k questions)
java (4.2k questions)
java (4.2k questions)
c# (3.5k questions)
c# (3.5k questions)
html (3.3k questions)
type casting in C doesnt change 97 to 'a'
#include<stdio.h>
int main(){
printf("%d\n", (int)('a'));
printf("%d\n", (char)(97));
}
Why does the program above give the output
97
97
instead of
97
a

Matthias
Votes: 0
Answers: 5
sscanf does not work properly for eight and nine with leading zero
I've been trying to scan integers with sscanf() from strings with leading zeros (e.g. '03').
However, it works fine but only until '07'. Starting with '08', the strings will be read as 0.
Below you'll...
stulli
Votes: 0
Answers: 2
What are the fractional octal and hexadecimal conversion specifier in C?
I am aware that when using the printf function I can express the octal value of an integer with %o and its hexadecimal value with %x.
How can I represent a floating-point value as octal or hexadecimal...
NotationMaster
Votes: 0
Answers: 1