Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • Home
  • SEARCH
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 8212907
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 7, 20262026-06-07T10:55:49+00:00 2026-06-07T10:55:49+00:00

I am trying to compile this code example from the book Head First C

  • 0

I am trying to compile this code example 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?

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-07T10:55:51+00:00Added an answer on June 7, 2026 at 10:55 am

    Sometimes when copying code from PDFs invisible unwanted characters are copied as well.

    To fix this you can tell Xcode to show you all invisible characters by changing the editor properties from the top bar menu.

    (top bar menu) → Editor → Show Invisibles
    

    You will have to delete anything that looks strange strange, like a space being represented by an actual space (” “) or a little triangle (“^”). Keep in mind that in this mode spaces are represented with this symbol “⌴”.

    For example:

    Sample invisible bad character

    Which causes the “Expected Expression” error.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I'm trying to compile the next code, but I'm getting this error on the
I'm trying to compile the following simple DL library example code from Program-Library-HOWTO with
When trying to compile this code: #include <iostream> #include <vector> using namespace std; class
I trying to compile this code: Int64 itag = BitConverter.ToInt64(temp, 0); itag &= 0xFFFFFFFFFFFFFC00;
When I'm trying to compile this code with gcc version 4.6.3 on linux with
I'm trying to figure out why this code won't compile. I have interface A
I am trying to use some sample code and my compiler won't compile this
I get this error when trying to make the executable, the code compiles correctly
I'm trying to compile this function from Learn You a Haskell for Great Good
I'm trying to extract snippets of dialogue from a book text. For example, if

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.