First of all, Turbo C++ is a very old and discontinued development environment which does not support the latest C programming language standards. You'd be better off using MinGW or Cygwin instead.
Secondly, the code pasted here is missing a few things; either you didn't copy it correctly, or the book you're using is not well-written. Here's what the code should look like using modern C:
#include <stdio.h>
int main( void )
{
printf( "I see, I remember\n" );
}
As of the C99 language standard, implicit function declarations are no longer allowed; the compiler will no longer assume that a function returns int if the type isn't specified.
Also, you should not leave the parameter list for main empty; in this case, we're specifying that main takes no arguments using the void keyword1.
printf writes to standard output, and standard output is usually line buffered, meaning the output won't appear on your console unless you fill the buffer or send a newline character ('\n').
Also as of C99, you don't need an explicit return from main, even though it's typed to return an integer value; by default, it will return 0 to the runtime environment when the program finishes executing.
main is unique in that it can either take no arguments (int main( void )) or two arguments (int main( int argc, char **argv )) for processing command-line parameters, and implementations may provide additional versions.
#include <stdio.h>#include <stdio.h>. Error 2:int main(). Error 2: missing;afterprintf().gccis allowing many different non-ANSI-C things.int main(),int main(void)orint main(int argc, char **argv), which will all work portably on any standard C-compiler.