I have read my professor base code. I'm not familiar with "p" in the context. Can someone explain me what "p" is?
int function(p)
int p;
{
return (anotherFunction (p));
}
I have read my professor base code. I'm not familiar with "p" in the context. Can someone explain me what "p" is?
int function(p)
int p;
{
return (anotherFunction (p));
}
An integer parameter, declared in K&R syntax (in other words, very old).
Which, if the code is less than 20 years old is not a good sign that whoever is teaching you actually knows anything worth knowing.
If you dance barefoot on the broken glass of undefined behaviour, you've got to expect the occasional cut.
If at first you don't succeed, try writing your phone number on the exam paper.