It's syntactically correct and there's really no harm in it except for the fact that its a complete waste since the reason you have a function returning a value is because you want to use it. If you don't want to return a value then a function returns void.
int add(int x, int y)
return x + y;
void print_add (int x, int y)
printf("%d\n", add(x, y));
add(5, 10); // does nothing
print_add(5, 10); // outputs 15
I am working creating a fully encapsulated, homogeneous singly linked data structure. The Listing class and SinglyLinkedList class that are part of the whole application compile fine, but the problem ...