FUNDAMENTALS OF COMPUTER

COMPUTER PROGRAMMING FUNDAMENTALS

WHAT IS PROGRAMMING

Question [CLICK ON ANY CHOICE TO KNOW THE RIGHT ANSWER]
this keyword specifies that is returns to no value
A
0 VOID
B
PRINTF()
C
SCANF()
D
GETCH()
Explanation: 

Detailed explanation-1: -void (C++) When used as a function return type, the void keyword specifies that the function doesn’t return a value. When used for a function’s parameter list, void specifies that the function takes no parameters. When used in the declaration of a pointer, void specifies that the pointer is “universal."

Detailed explanation-2: -The void keyword specifies that a method should not have a return value.

Detailed explanation-3: -The this keyword refers to the current object in a method or constructor. The most common use of the this keyword is to eliminate the confusion between class attributes and parameters with the same name (because a class attribute is shadowed by a method or constructor parameter).

Detailed explanation-4: -Void functions are created and used just like value-returning functions except they do not return a value after the function executes. In lieu of a data type, void functions use the keyword “void.” A void function performs a task, and then control returns back to the caller–but, it does not return a value.

There is 1 question to complete.