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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 28, 20262026-05-28T15:36:09+00:00 2026-05-28T15:36:09+00:00

i searched for my problem, but didn’t found it. I have a declaration of

  • 0

i searched for my problem, but didn’t found it.

I have a declaration of an pointer array

int *Blocks[] = {Block1,Block2,Block3,Block4};

The Blocks are arrays with a length of 50.

Now i have a for-loop, there i want to step by step init the fields

for(int i=0;i<50;++i)
{
*(Blocks[section])+i = 1;
}

The One should be a variable later.
Is it right or whats the right expression to get the array field of the selected section?

Thanks to every answer

  • 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-28T15:36:10+00:00Added an answer on May 28, 2026 at 3:36 pm

    No, that line isn’t quite right. The following is (note the position of the parentheses):

    *(Blocks[section]+i) = 1;
    

    or, equivalently but more concisely:

    Blocks[section][i] = 1;
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have searched but i didn't found any solution to my problem. I want
i searched, i found, but it all didn't work. my problem is that the
I have searched/Googled around but I'm struggling with the following problem. I am building
I have searched for hours now and haven't found a solution for my problem.
I've searched the whole day for a solution of my problem, but didn't find
I have searched about this matter a lot but, I didn't get a proper
UPDATE : I have found the problem that my DP solution didn't handle bonus
i searched for the topic but didn't find exactly that kind of problem. I
I have searched about all the post but I can't found the solution on
I searched for this but didn't find an solution that totally fixed my problem.

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.