LEC:4, Functions in C++

SOURCE CODE:

#include<iostream>
using namespace  std;
// return_type function_name ()
void name2();
void name()
{
    cout<<"hello world in the name function";
}
int main()
{
    name2();
    cout<<"This is the main function"<<endl;
    // function name ();
    name();
    return 0;
}
void name2()
{
    cout<<"this is the name2 function \n";
}

Thankyou, please share.😃😄

Comments

Popular posts from this blog

RunwayWithCode

web development Lectures

C++ Lectures