English

Which of the following makes a function non-returnable? - Computer Applications

Advertisements
Advertisements

Question

Which of the following makes a function non-returnable? 

Options

  • Public

  • Static

  • Void

  • New

MCQ

Solution

Void

Explanation:

To indicate that a function returns nothing, use the void keyword. In programming languages such as Java or C++, a function declared as non-returnable executes operations but returns void. 

shaalaa.com
  Is there an error in this question or solution?
Chapter 1.02: Elementary Concept of Objects and Classes - EXERCISES [Page 16]

APPEARS IN

Avichal Computer Applications [English] Class 10 ICSE
Chapter 1.02 Elementary Concept of Objects and Classes
EXERCISES | Q I. 4. | Page 16
Share
Notifications

Englishहिंदीमराठी


      Forgot password?
Use app×