Question: what is undefined reference in c?
Answer: An “Undefined Reference” error occurs when we have a reference to object name (class, function, variable, etc.) in our program and the linker cannot find its definition when it tries to search for it in all the linked object files and libraries. ... There are various reasons that cause an “undefined reference” error.