๐Ÿ“ข 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
    More Shell Scripting Questions
    ask-question