- This topic has 0 replies, 1 voice, and was last updated 15 years, 7 months ago by .
Viewing 0 reply threads
Viewing 0 reply threads
- The forum ‘C Programming’ is closed to new topics and replies.
Home › Forums › C Programming › Compile and…
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