Answers for "in function c++"

C++
1

function in c++

#include <iostream>
using namespace std;

// Create a function
void myFunction() {
  cout << "I just got executed!";
}

int main() {
  myFunction(); // call the function
  return 0;
}

// Outputs "I just got executed!"
Posted by: Guest on May-24-2021

Browse Popular Code Answers by Language