+ 1
Void
Hey I am a beginner and have problems with void . Could somebody help me??
3 Réponses
+ 3
void is data type
which is typically has no value or we can say it is blank ...
also in reference to declaration in a program we can say that it can be assigned any value
+ 3
Void as the return type means that the function doesn't return anything. If put in the parameter field, it means that the function doesn't have any parameter.
void printAnswer(void){
cout << 42 << endl;
}
0
Thanks guys