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

// Declaration and definition at same time
void printSentence() {                     
    cout << "I am learning functions.";    
}  

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