InterviewSolution
Saved Bookmarks
| 1. |
I Was Trying To Use An Out Int Parameter In One Of My Functions. How Should I Declare The Variable That I Am Passing To It? |
|
Answer» You should declare the VARIABLE as an int, but when you pass it in you MUST specify it as ‘out’, LIKE the following: int i; FOO(out i); where foo is declared as FOLLOWS: You should declare the variable as an int, but when you pass it in you must specify it as ‘out’, like the following: int i; foo(out i); where foo is declared as follows: |
|