I am trying to compile this sample code from the book "Head First C" (page 50), and Xcode gives me the error "Parse Issue" "Expected Expression" and highlights the line "int longitude = -64;" in red.
#include <stdio.h> void go_south_east(int * lat, int * lon) { *lat = *lat - 1; *lon = *lon + 1; } int main() { int latitude = 32; int longitude = -64; go_south_east(&latitude,&longitude); printf("Avast! Now at: [%i, %i]\n", latitude, longitude); return 0; }
I have no idea why. Can anyone help?
c xcode compiler-errors
Magwich
source share