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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 27, 20262026-05-27T00:37:40+00:00 2026-05-27T00:37:40+00:00

Activity solution[a][b]; // … Activity **mother = solution; I want to convert 2D array

  • 0
Activity solution[a][b];
// ...
Activity **mother = solution;

I want to convert 2D array of objects to pointer-to-pointer. How can I do this?

I searched it on google. however I found only one dimension array example.

  • 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-27T00:37:41+00:00Added an answer on May 27, 2026 at 12:37 am

    A mere conversion won’t help you here. There’s no compatibility of any kind between 2D array type and pointer-to-pointer type. Such conversion would make no sense.

    If you really really need to do that, you have to introduce an extra intermediate “row index” array, which will bridge the gap between 2D array semantics and pointer-to-pointer semantics

    Activity solution[a][b];
    
    Activity *solution_rows[a] = { solution[0], solution[1] /* and so on */ };
    
    Activity **mother = solution_rows;
    

    Now accessing mother[i][j] will give you access to solution[i][j].

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

Sidebar

Related Questions

EDIT: I found the solution, see below My first post on StackOverFlow. However I
Basically I want an activity indicator that will show at a glance that there
I am trying to define a static member pointer in C++. However I get
How we can Read Activity name from logcat in Android? I used some code
I am having a problem in my Activity, which can take the control to
I want to create the activity which will load the images from Web by
hi guys i am looking for solution to fire my own activity to be
So right now I'm using this solution in my app Ship an application with
Has anyone found a solution or workaround to the issue of how Entity Framework
I am working on activity which request one php file on server & this

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.