Ask Question
5 July, 03:16

Empty parentheses following a function name in a function definition indicate that the function does not require any parameters to perform its task.

+4
Answers (1)
  1. 5 July, 05:29
    0
    This statement is correct.

    Explanation:

    If a function does not have any parameters, then we can create the variable inside the function which will be private and call the function from the main function.

    If we specify any return type like int, float or char, etc then we need to declare a return value from the function.

    But If we specify the Void then we don't need to return value inside the function, we can directly print the value inside function.

    Ex.

    void add ()

    {

    int a=7;

    int b=9;

    int c=a+b;

    System. out. println ("the added value is : "+c);

    }
Know the Answer?
Not Sure About the Answer?
Find an answer to your question ✅ “Empty parentheses following a function name in a function definition indicate that the function does not require any parameters to perform ...” in 📘 Computers and Technology if you're in doubt about the correctness of the answers or there's no answer, then try to use the smart search and find answers to the similar questions.
Search for Other Answers