CodeGuru Home VC++ / MFC / C++ .NET / C# Visual Basic VB Forums Developer.com
Results 1 to 2 of 2
  1. #1
    Join Date
    Mar 2009
    Posts
    20

    What is the scope of 2d Dynamic array??

    i am making a hotel database management system and i m using many functions in it,i want to know if i get the input in the 2d dynamic array in one function,would i be able to use it in another function?

    if not then what else i can do?

    thanks

  2. #2
    Lindley is offline Elite Member Power Poster
    Join Date
    Oct 2007
    Location
    Seattle, WA
    Posts
    10,895

    Re: What is the scope of 2d Dynamic array??

    That depends entirely on your code.

    As with all arrays, though, if you pass a single array as a parameter to both functions, they'll see the same block of memory. You're only copying the address, after all.

Tags for this Thread

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  





Click Here to Expand Forum to Full Width

Featured