I recently got a question from my professor that requires me to figure out what is wrong with a certain code.
im just double checking if i got it right
1 2 3 4 5 6 7 8 9 10 11 12
//problem code:
int F1 {int x1; int x2}
(
return x1/x2:
}
//my solution
int F1 ( int x1, int x2)
{
return x1/x2;
}
my professor is very bad but its too late to drop the class. He didn't give me other info other than to figure out what was wrong with the original problem.
if you guys can please help me out that would be great thank you
Your solution seems fine. If you're ever in doubt you can just try compiling it, and if you don't have a compiler on hand you can use an online compiler like IDEone: http://ideone.com/