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

  • SEARCH
  • Home
  • 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 7187825
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 28, 20262026-05-28T18:55:58+00:00 2026-05-28T18:55:58+00:00

So, in this guide I read that saying char * terry; was different from

  • 0

So, in this guide I read that saying

char * terry;

was different from saying

char* terry; //or
char *terry; // FYI: I understand what these two do.

as stated by

“I want to emphasize that the asterisk sign (*) that we use when
declaring a pointer only means that it is a pointer (it is part of its
type compound specifier), and should not be confused with the
dereference operator that we have seen a bit earlier, but which is
also written with an asterisk (*). They are simply two different
things represented with the same sign.”

However I do not understand why. Perhaps I took the quote the wrong way, now that I have read it once again, but I am still confused. Can anyone tell me if this is wrong or right and why?

Thank you.

  • 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-05-28T18:55:59+00:00Added an answer on May 28, 2026 at 6:55 pm

    No, all three are exactly the same as far as the parser is concerned. People certainly have their reasons for using each style, but there’s not really a “right” way. As an editorial note, I prefer:

    char *terry;
    

    What the author of your link is describing is that the * in the declaration is somehow different from the unary * operator used to dereference a pointer:

    char *terry = "abcdefg"; // declaration & initialization
    *terry = 'x';            // dereference
    

    This potential funny business is actually one of the reasons I prefer the notation I mentioned above – it makes both cases look the same, so there’s no room for confusion.

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

Sidebar

Related Questions

I'm having trouble following this guide to extract my interfaces and entities from my
I am new to rails and read this guide to get all the info
Recently I started taking this guide to get myself started on downloading files from
I read the http://developer.android.com/guide/practices/screens_support.html.com ? but couldn't get how to apply this, can anyone
I read this guide about serving static media with Django during development. I noticed
So I read this guide a while ago and I stopped using semicolons after
I read that one can use kernel launches to synchronize different blocks i.e., If
I read this in the core data programming guide: In many cases, your initial
Hy! I read this http://developer.android.com/guide/developing/projects/projects-eclipse.html but when i press add library the downloaded libary
I found this guide for using the flash parameters, thought it might be useful

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.