Ask Question
8 August, 13:25

Write the definition of a function printDottedLine, which has no parameters and doesn't return anything. The function prints to standard output a single line (terminated by a new line character) consisting of 5 periods.---

+5
Answers (1)
  1. 8 August, 13:31
    0
    The function definition to this question can be given as:

    Function definition:

    void printDottedLine () / /define method.

    {

    //method body

    printf (" ... / n");

    //print periods.

    }

    Explanation:

    The description of the above function definition can be given as:

    In the above code, we define a method that name is "printDottedLine". This method does not return any value because we use the void return type in this function. In this function, we print the five periods (.) and terminate by new line character (/n). This code will give five periods that is " ... ".
Know the Answer?
Not Sure About the Answer?
Find an answer to your question ✅ “Write the definition of a function printDottedLine, which has no parameters and doesn't return anything. The function prints to standard ...” 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