What will be the value of sum after the below code snippet is executed?
#include <iostream>
using namespace std;
int main() {
int x = 5;
int sum;
int y = 5;
x++;
--y;
sum = x + y;
cout << sum << endl;
return 0;
}