📢 Too many exams? Don’t know which one suits you best? Book Your Free Expert 👉 call Now!


    âš¡ Azaadi sale - Celebrate Independence Day with Flat 55% Off On all courses! 13 to 17 Aug âš¡ Enroll Now

    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:

    ask-question

    Not sure which exam is best for you Talk to our expert

    Get My Free Call