473,396 Members | 2,016 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,396 software developers and data experts.

what is the advantage of INOUT parameter over OUT parameter?

what is the advantage of INOUT parameter over OUT parameter?
Aug 2 '07 #1
3 3066
ilikepython
844 Expert 512MB
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.
Aug 2 '07 #2
RRick
463 Expert 256MB
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?
Aug 2 '07 #3
weaknessforcats
9,208 Expert Mod 8TB
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.
Aug 3 '07 #4

Sign in to post your reply or Sign up for a free account.

Similar topics

1
by: 77123036 | last post by:
#include <iostream> #include <fstream> using namespace std; int main() { fstream inOut( "copy.out", ios_base::in|ios_base::app ); int cnt=0; char ch; inOut.seekg(0);
0
by: Ramkumar | last post by:
Hi I am calling a DB2 stored procedure with 3 parameters. The last one is an inout parameter in which a value is returned (SQLCODE). I am using the DB2DataAdapter object's fill method to return a...
669
by: Xah Lee | last post by:
in March, i posted a essay “What is Expressiveness in a Computer Language”, archived at: http://xahlee.org/perl-python/what_is_expresiveness.html I was informed then that there is a academic...
13
by: Sarath | last post by:
What's the advantage of using for_each than the normal iteration using for loop? Is there any 'tweak' to use stream objects as 'Function' parameter of for_each loop. Seems copy function can do...
36
by: Pat | last post by:
Hi, I've run into a strange problem, but one that seems like it might be fairly common. I have a single base class, from which several other classes are derived. To keep the example simple,...
4
by: needhlp2 | last post by:
What is the advantage of using a pointer to a structure as a parameter to a funtion, instead of the structure itself? -the code is easier to read -it is more efficient because the structure is...
2
by: Question123 | last post by:
Hi In storedprocedure Is it possible to define sql parameter as INOUT?? plz help me Thanks
14
by: Tony | last post by:
Hello! It says "Another limitation that you need to be aware of is that using the operator == and != are only permitted when comparing a value of a type supplied to a generic type to null....
0
by: diegoM | last post by:
Hello, I have created a function in Postgres. His code is : CREATE OR REPLACE FUNCTION add_one(INOUT arg1 integer, INOUT arg2 integer) RETURNS record AS '$libdir/myDLL.dll', 'add_one'...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
0
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development projectplanning, coding, testing,...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.