1

In C language code, if I have a bunch of variables that will be used only for logical operations, what is the data type that will yield the fastest execution time?

Also, does it depend if I'm using an ARM or Intel processor, 32-bit or 64-bit system?

Aya
  • 31
  • 6

1 Answers1

5

If the compiler allows, include <stdbool.h>, use bool, and trust the compiler/RTL vendor to do the right thing. Otherwise use int.

Seva Alekseyev
  • 59,826
  • 25
  • 160
  • 281