Hello there,
I’m a brand-new student in programming arena. Actually I’m a student of other discipline and I decided to learn C language. To do so I’m currently using the book “Teach yourself C – Herbert Schildt” and a compiler “Borland C++ 5.02”. I’m just following the book as directed, but while compiling the following program, the compiler gives the message “(5, 16): Call to undefined function ‘get_sqr’. I want some help from you guys and tell me where the mistake in this program is.
#include "stdio.h"
main()
{
int sqr;
sqr = get_sqr();
printf("square: %d", sqr);
}
get_sqr()
{
int num;
printf("enter a number: ");
scanf("%d", &num);
return(num*num);
}