I've got a simple question. This is my C++ code:
#include <iostream>
using namespace std;
void example(const int someArgument)
{
    cout << someArgument << endl;
}
int main()
{
    int someArgument = -1;
    example(someArgument);
}
Does running example(someArgument) makes a copy in memory of someArgument, or passes only address to variable? I assume that compiler "knows" that I won't modify it by using const keyword so it shouldn't be necessary to make a copy. Am I wrong?
 
     
     
    