Results 1 to 3 of 3

Thread: How to return arrays from a function using ref keyword?

  1. #1

    Thread Starter
    Member
    Join Date
    Jan 2020
    Posts
    59

    How to return arrays from a function using ref keyword?

    How can I return arrays from a function using ref keyword?

    I Appreciate your suggestions!!

  2. #2
    Super Moderator jmcilhinney's Avatar
    Join Date
    May 2005
    Location
    Sydney, Australia
    Posts
    110,297

    Re: How to return arrays from a function using ref keyword?

    I just wanted to make sure that this really was a C/C++ question rather than C#.

  3. #3
    Fanatic Member 2kaud's Avatar
    Join Date
    May 2014
    Location
    England
    Posts
    996

    Re: How to return arrays from a function using ref keyword?

    There is no ref keyword in C++..... c#?? Refs in C++ are denoted by &
    All advice is offered in good faith only. You are ultimately responsible for the effects of your programs and the integrity of the machines they run on. Anything I post, code snippets, advice, etc is licensed as Public Domain https://creativecommons.org/publicdomain/zero/1.0/

    C++23 Compiler: Microsoft VS2022 (17.6.5)

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