I have confusion about why function increment is not returning value 11 is this because a is local to function increment so that we cannot access it in the main function.
#include <iostream>
using namespace std;
int increment(int a) {
  a=a+1;
  return a;
}
int main() {
  int a=10;
  increment(a);
  cout<<a;
  return 0;
}
 
     
     
     
    