what is the advantage of INOUT parameter over OUT parameter?

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • Santosh Anand
    New Member
    • Aug 2007
    • 1

    what is the advantage of INOUT parameter over OUT parameter?

    what is the advantage of INOUT parameter over OUT parameter?
  • ilikepython
    Recognized Expert Contributor
    • Feb 2007
    • 844

    #2
    Originally posted by Santosh Anand
    what is the advantage of INOUT parameter over OUT parameter?
    I'm not sure what you are talking about. An output file you can only write to, an input file you can only read. I/o you can do both.

    Comment

    • RRick
      Recognized Expert Contributor
      • Feb 2007
      • 463

      #3
      I can't think of any case, where a parameter can be only an OUT value. A parameter can be IN or INOUT.

      Do you mean the difference between passing data as a parameter verus returning data with the return statement?

      Comment

      • weaknessforcats
        Recognized Expert Expert
        • Mar 2007
        • 9214

        #4
        No. The OP is talking about Microsoft header annotations that are used by Microsoft analysis tools like PreFast.

        With that in mind, IN means input only. INOUT means input or output. You use the one that's appropriate to your function.

        Comment

        Working...