Banking Computers Science IBPS Bank PO Main Exam 2016

  • question_answer
    A function can return only

    A)  No value

    B)  Single value

    C)  Two Values

    D)  Either two or four values

    E)  More than five values

    Correct Answer: B

    Solution :

    [b] In the most general sense, a function is a structuring element in programming languages to group a set of statements so they can be utilized more than once in a program A function can return exactly one value, or we should better one object. For example in both C and C++ one can only directly return one value.


You need to login to perform this action.
You will be redirected in 3 sec spinner