Here is my code snippet:
float ab(float);
and later
if(ab(temp)<ab(a[r][c]))
{ do something; }
where
float temp;a[6][6];
Now what really is this declaration float ab(float) and how it is used later?
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
It’s a function prototype. The function is called
ab; it takes afloatand returns afloat. In theifstatement,ab(...)is simply a call to that function.To figure out what the function does, you’ll have to find its definition.