[Ilugc] Regarding C file execution

  • From: carti@xxxxxxxxxxxxxx (carti)
  • Date: Thu Jul 8 13:37:32 2004


Remove the line #include <conio.h>
There is no conio.h in linux or unix gcc.

Now compile and run. It should work.
Also, if you had not typed main(),
give that also.

carti
--


The corroect program is as follows.

#include <stdio.h>
main()
{
  int x=5;
  printf("%s%d","dkfjsghf",x);
}

Other related posts: