StackOverflow Questions for Tag: integer-promotion

Sarge324
Sarge324

Reputation: 53

How to prevent type promotion when using two or more templates when next one implements the previous

Score: 2

Views: 72

Answers: 2

Read More
alex_why
alex_why

Reputation: 137

What is the purpose of the instructions that gcc emits?

Score: 4

Views: 113

Answers: 2

Read More
MJLW
MJLW

Reputation: 59

GCC/Clang-18 compiler assumes type as unsigned int for enum

Score: 3

Views: 97

Answers: 2

Read More
İlker Deveci
İlker Deveci

Reputation: 105

Integer Promotion in C

Score: 0

Views: 101

Answers: 2

Read More
Richard Steidl
Richard Steidl

Reputation: 21

Flatbuffers VectorIterator::operator- undefined behavior

Score: 2

Views: 46

Answers: 0

Read More
cdalitz
cdalitz

Reputation: 1277

Why does reading a file with while ((c = getc(file)) != EOF) work on some platforms?

Score: 0

Views: 159

Answers: 2

Read More
Sterpu Mihai
Sterpu Mihai

Reputation: 618

integer promotion isn't taken into account

Score: 6

Views: 121

Answers: 3

Read More
op ol
op ol

Reputation: 767

Promotions and conversions of variables in printf()

Score: 3

Views: 667

Answers: 2

Read More
elialm
elialm

Reputation: 781

Unexpected behaviour during implicit conversion in C

Score: 35

Views: 2229

Answers: 3

Read More
Mel
Mel

Reputation: 27

Why does "left shift count >= width of type" seemingly kick in late?

Score: -1

Views: 123

Answers: 2

Read More
Hathibelagal Praneeth
Hathibelagal Praneeth

Reputation: 19

Numeric promotions in C#

Score: -1

Views: 157

Answers: 1

Read More
Nguai al
Nguai al

Reputation: 958

Does the order of multiplication variables of different data type cause different results?

Score: 4

Views: 2259

Answers: 2

Read More
dayuloli
dayuloli

Reputation: 17031

Why must a short be converted to an int before arithmetic operations in C and C++?

Score: 83

Views: 13530

Answers: 4

Read More
Ackdari
Ackdari

Reputation: 3498

Why does bitwise left shift promotes an uint8_t to a wider type

Score: 6

Views: 5607

Answers: 1

Read More
haton
haton

Reputation: 3

How to force type promotion in a variadic function wrapper?

Score: 0

Views: 56

Answers: 1

Read More
user2522685
user2522685

Reputation: 870

Type conversion - unsigned to signed int/char

Score: 74

Views: 34195

Answers: 5

Read More
Lingxi
Lingxi

Reputation: 14987

std::byte overhead from integer promotion

Score: 6

Views: 140

Answers: 0

Read More
LiDa Cute
LiDa Cute

Reputation: 475

Why is 'char -> int' promotion, but 'char -> short' is conversion (but not promotion)?

Score: 41

Views: 3819

Answers: 4

Read More
bers
bers

Reputation: 5813

Why do plus and minus have different promotion rules although the results are the same?

Score: 10

Views: 479

Answers: 1

Read More
JoshuvaBernard
JoshuvaBernard

Reputation: 11

why is the output of this question is 266 -1 10 in turbo c compiler?

Score: 0

Views: 62

Answers: 1

Read More
PreviousPage 1Next