C - Variables and Data Types
Which of the following is the correct way to define a constant integer named MAX with value 100 in C?
#define or using const keyword with variable declaration.#define, which is valid. int const MAX = 100; uses int const, which is valid. const int MAX = 100; uses const int, also valid. So all are correct.15+ quiz questions · All difficulty levels · Free
Free Signup - Practice All Questions