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 3797792
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 19, 20262026-05-19T13:27:47+00:00 2026-05-19T13:27:47+00:00

In a question I posted here: C++ – class issue One of the replies,

  • 0

In a question I posted here: C++ – class issue

One of the replies, which was from @SanSS mentioned the following part of the reply:

Arrays in C are used through pointers…

How is this done? And, can you clarify this by an example if possible?

Thanks.

  • 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-19T13:27:48+00:00Added an answer on May 19, 2026 at 1:27 pm

    What is meant by that could be a couple of things:

    1) the subscript operator is defined in terms of pointer arithmetic. C99 6.5.2.1/2 “Array subscripting” says:

    The definition of the subscript operator [] is that E1[E2] is identical to (*((E1)+(E2))).

    As an example, assume you have an array declated like so: char s[] = "012345";

    All of the following evaluate to ‘4’:

    • s[4]
    • *(s + 4)
    • 4[s] – this
      unusual construct might surprise you,
      but because of the way that
      subscripting is defined by the
      standard, this is equivalent to *(4 +
      s)
      , which is the same as *(s + 4)
      and the same as s[4].

    2) (closely related to the above) array names evaluate to pointers to the first element of the array in most expressions (being the operand to the sizeof operation being the main exception).

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

Sidebar

Related Questions

Following a question posted here about how I can increase the speed on one
James here. This question relates (sort of) to the one I posted a little
I'm working from a question I posted earlier ( here ), and trying to
This question to which I already found the answer is posted here in case
I was reading a question posted here: Sudoku algorithm in C# And one of
This is a follow-up question to the one I posted here (thanks to mario
There has already been a question posted here which is very similar. Mine is
This question follows on from the problem posted here when i run explain I
I am following up from this question here The problem I have is that
This question refers to this prior one posted here on SO by Christian Metzler

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.