Compile and…

Home Forums C Programming Compile and…

Viewing 0 reply threads
  • Author
    Posts
    • #2190
      RamiroCharbonne
      Participant

      Hello
      just starting my C experience
      when I compile in Terminal this:
      #include

      int main (int argc, const char * argv[])
      {
      int x;
      x = 1;

      if ((x >= 1 ) && (x<=10)) printf(“The X is in range from one to ten.n”);
      printf(“*The program works just fine!*n”);

      return 0;

      }
      the program runs fine.
      if I then copy exact the same code and copile it in the XCode, I am getting an error ‘No new line at and of file’
      and the error is pointing the } line 15.
      could someone explain please
      thank you kindly

Viewing 0 reply threads
  • You must be logged in to reply to this topic.