If I return a void function from a void function, will that function be called before returning?
example:
#include <iostream>
void one ( ) { std::cout << "Hello world.\n"; }
void two ( ) { return one ( ); }
int main ( ) { two ( ); }
Will "Hello world." be printed to the screen?
Aucun commentaire:
Enregistrer un commentaire