Answers for "return in void function c"

-1

return in void function c

#include <iostream>
using namespace std;

void my_func() {
   cout << "From my_function" << endl;
   return;
}

int main() {
   my_func();
   return 0;
}

//Output : From my_function
//return another_function(); also works
Posted by: Guest on June-17-2021

Browse Popular Code Answers by Language