#include <iostream> using namespace std; fn1(int Arg) { int a = 10; } int main() { cout << "fn1(): " << fn1(22) << endl; return 0; } I call the function and pass the number 22 for example, which is one argument passed, but the function that takes one argument must convert it to 10 , and for some reason it outputs 1 , although it must print 10 , Why is that?
intassumed. It would be necessary to clarify where the TS compiled and how. - 伪位蔚蠂慰位蠀蟿cout <<not supposed, is not it? ... - Harry