हिंदी

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

Advertisements
Advertisements

प्रश्न

Which of the following makes a function non-returnable? 

विकल्प

  • Public

  • Static

  • Void

  • New

MCQ

उत्तर

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
  क्या इस प्रश्न या उत्तर में कोई त्रुटि है?
अध्याय 1.02: Elementary Concept of Objects and Classes - EXERCISES [पृष्ठ १६]

APPEARS IN

अविचल Computer Applications [English] Class 10 ICSE
अध्याय 1.02 Elementary Concept of Objects and Classes
EXERCISES | Q I. 4. | पृष्ठ १६
Share
Notifications

Englishहिंदीमराठी


      Forgot password?
Use app×