+ 1

Void

Hey I am a beginner and have problems with void . Could somebody help me??

25th Oct 2016, 6:38 PM
Mateusz Ignacy
Mateusz Ignacy - avatar
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
25th Oct 2016, 8:39 PM
Mayank Kumar
Mayank Kumar - avatar
+ 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; }
25th Oct 2016, 11:27 PM
Zen
Zen - avatar
0
Thanks guys
3rd Nov 2016, 2:51 PM
Mateusz Ignacy
Mateusz Ignacy - avatar