Question

    What is the correct way to declare a constant in C?

    A constant int x = 5; Correct Answer Incorrect Answer
    B int constant x = 5; Correct Answer Incorrect Answer
    C int x = const 5; Correct Answer Incorrect Answer
    D const int x = 5; Correct Answer Incorrect Answer

    Solution

    const int x = 5;

    Practice Next

    Relevant for Exams: