A question from a newbie regarding nested function
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.
sqr = get_sqr();
printf("square: %d", sqr);
printf("enter a number: ");