Files
  • main.cpp
main.cpp
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
#include <iostream>    
using namespace std;

// Declaration
void printSentence();  

int main() {
    // Function call
    printSentence();   
    return 0;
}

// Definition
void printSentence() {              
    cout << "I am learning functions in C++.";
}