Welcome To The World Of Hacking


Learn Hacking|Teach Hacking|Learn To Secure|Learn To Code

Thursday

C++ TUTORIAL 9: INTRODUCTION TO FUNCTION

#include <iostream>
using namespace std;

void printTheStatement(); //Here function declaration is  done

int main()
{
    printTheStatement(); //Here function calling is done
    return 0;
}

void printTheStatement() //Here function is defined
{
    cout<<"I am a function"<<endl;
}

OUTPUT:

No comments:

Post a Comment

Related Posts Plugin for WordPress, Blogger...