I have a question about calling a function from within an if statement.
The prototype of the function is as follows:
BOOKPTR BOOKSEARCH(BOOKPTR, int, int);
The function call is as follows:
if (mat = 1 && ITEM_ID != NULL)
{
BOOKPTR BOOKSEARCH(BOOKPTR BHead, int ITEM_ID, int mat);
}
and the function definition is as such:
BOOKPTR BOOKSEARCH(BOOKPTR BHead, int num, int mat)
{
. . .
When I run the program, it just skips over the function call. The debugger hits the opening brace and then the closing brace and goes on to execute the else if statement Can anyone tell me why??