Hello all. I am trying to convert a c document to c++. I requires that i use the out word like this.

if (executeCommand("QUIT", out response))

is there and out for c, or a better way that i'm unaware of. Thanks all for your time. bye

Recommended Answers

I know of no "out word" in C or C++. I don't know if that is pseudocode, but if it isn't, it's a syntax error in either language. If "out" refers to "cout" or "output" or "standard out", well, I'm not going to try to guess what you mean. Please …

Jump to Post

All 2 Replies

I know of no "out word" in C or C++. I don't know if that is pseudocode, but if it isn't, it's a syntax error in either language. If "out" refers to "cout" or "output" or "standard out", well, I'm not going to try to guess what you mean. Please clarify.

out is a C# keyword. In C++ you'd pass by reference (&response)

Be a part of the DaniWeb community

We're a friendly, industry-focused community of 1.21 million developers, IT pros, digital marketers, and technology enthusiasts learning and sharing knowledge.