Answers for "c++ what does function : something"

C++
21

how to declare a function in c++

// function example
#include <iostream>
using namespace std;

int addition (int a, int b)
{
  int r;
  r=a+b;
  return r;
}
Posted by: Guest on March-04-2020
0

Function in C++

//Syntax
    void myFunction() {
  
  // code to be executed
}
Posted by: Guest on June-26-2021

Browse Popular Code Answers by Language