172k views
4 votes
Consider int count; If we pass &count as a parameter then what is the parameter type?

User Pulimon
by
7.5k points

1 Answer

2 votes

Final answer:

When &count is passed as a parameter, the parameter type is an integer pointer, denoted as int*.

Step-by-step explanation:

When you pass &count as a parameter in a function, you are passing a reference to the variable count. In programming, particularly in the C or C++ languages, this means you are passing a pointer to the variable. Therefore, the parameter type is a pointer to the type of the variable count. If count is an integer variable, as suggested by the name int, then the parameter type when passing &count is an integer pointer, often denoted as int* in C or C++.

User Simon Robb
by
8.5k points