Explore Connect Documentation
Snippets
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
# include <iostream>
using namespace std;
// function return_two returns an int variable that equals 2
int return_two() {
  return 2;
}
int main() {
  cout << 1 << endl;
  cout << return_two() << endl;  // print returned value
  cout << 3 << endl;
  
  return 0;
}
Press desired key combination and then press ENTER.