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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 18, 20262026-06-18T22:59:39+00:00 2026-06-18T22:59:39+00:00

following code a[10] == 10[a] the result seems true in C-language how C compiler

  • 0

following code

a[10] == 10[a]

the result seems true in C-language

how C compiler sees both of them as the same ?

  • 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-18T22:59:40+00:00Added an answer on June 18, 2026 at 10:59 pm

    a[10] means: “Start at memory address 10, add a to it and reference the resulting location”
    10[a] means: “Start at memory address a, add 10 to it and reference the resulting location”

    Since a + 10 is the same as 10 + a, both expressions will refer to the same memory location.

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

Sidebar

Related Questions

I just tried the following code, but the result seems a little strange. It
In the following code, it seems that the client.Connect.Receive is pinning the byte[] result
Hi I have the following code: boolean result = someexpression(); if(!result) { System.out.println(False...); }
The following code produces the result I don't understand this. Any ideas why? If
Possible Duplicate: C programming division in the following code example the result should yield
I'm really stuck on why the following code block 1 result in output 1
Following code produces a nested array as a result for keys containing three items:
I have the following code which definitely returns a proper data result if I
I tested the following code in firefox scratchpad and got interesting result? var date=new
I have the following code in action script 3: async.addResponder(new Responder(result, defaultFaultHandler)); result is

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.