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


    Question

    In Bash, which syntax is used for arithmetic

    expansion?
    A $(( expression )) Correct Answer Incorrect Answer
    B ${expression} Correct Answer Incorrect Answer
    C $(expression) Correct Answer Incorrect Answer
    D expr(expression) Correct Answer Incorrect Answer
    E [expression] Correct Answer Incorrect Answer

    Solution

    Arithmetic expansion in Bash uses double parentheses $(( )) to evaluate mathematical expressions and return numeric results.

    Practice Next
    ask-question