Hello, I had a question that says that i must write a prototype for a function named pass that has two integer parameters. The first parameter should be a value and the second a reference parameter. Im not sure if i did it right but this is what i did. Could you clarify whats Wrong?
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16
#include <time.h>
#include <iostream>
#include <cstdlib>
void pass( int a,int b, int z);
int main()
{
void pass(int a,int b, int z)
}
int a=1;
int b=a;
int z=a+b
cout<<z<<endl;
}
}
#include <time.h>
#include <iostream>
#include <cstdlib>
void pass( int a,int b);
int main()
{
voidint pass(int a,int b)
}
int a=1;
int b=a;
cout<<b<<endl;
}
But i dont think i wrote it right to what the requirements was.