If i type this it just prints the last number...
1 2 3 4 5 6 7 8 9 10 11 12
|
#include<iostream>
using namespace std;
int work(int x)
{
return x;
}
int main()
{
cout<<work((2,3,4,5,1))<<endl;
return 0;
}
|
Again it types just the last number.....
Explain please?
Last edited on