logo

CuriousTab

CuriousTab

Discussion


Home C Programming Functions Comments

  • Question
  • Functions can be called either by value or reference


  • Options
  • A. True
  • B. False

  • Correct Answer
  • True 

    Explanation
    True, A function can be called either call by value or call by reference.

    Example:

    Call by value means c = sub(a, b); here value of a and b are passed.

    Call by reference means c = sub(&a, &b); here address of a and b are passed.


    Functions problems


    Search Results


    • 1. A function may have any number of return statements each returning different values.

    • Options
    • A. True
    • B. False
    • Discuss
    • 2. If return type for a function is not specified, it defaults to int

    • Options
    • A. True
    • B. False
    • Discuss
    • 3. A function cannot be defined inside another function

    • Options
    • A. True
    • B. False
    • Discuss
    • 4. Functions cannot return more than one value at a time

    • Options
    • A. True
    • B. False
    • Discuss
    • 5. In C all functions except main() can be called recursively.

    • Options
    • A. True
    • B. False
    • Discuss
    • 6. Names of functions in two different files linked together must be unique

    • Options
    • A. True
    • B. False
    • Discuss
    • 7. If a function contains two return statements successively, the compiler will generate warnings. Yes/No?

    • Options
    • A. Yes
    • B. No
    • Discuss
    • 8. Functions cannot return a floating point number

    • Options
    • A. Yes
    • B. No
    • Discuss
    • 9. Maximum number of arguments that a function can take is 12

    • Options
    • A. Yes
    • B. No
    • Discuss
    • 10. Every function must return a value

    • Options
    • A. Yes
    • B. No
    • Discuss


    Comments

    Avatar
    cBPfvU
    Nigella sativa, black cumin, black seed, or black caraway, is a natural diuretic that may be as effective as a popular prescription diureticNonsteroidal enzyme inhibitors such as anastrozole and letrozole inhibit enzyme activity by binding with the heme iron of the enzyme


Enter a new Comment