© 2026 Hedgehog Software, LLC

TwitterGitHubDiscord
More
CommunitiesDocsAboutTermsPrivacy
Search
Star
Setup for Free
C#C
C#•3y ago•
40 replies
Darma

❔ Parameter Shenanigans

I'm working on a linear search method that will return the count (number of iterations it took to find the target), the parameters are obviously the int table, the target number "t", and the count "c". I'm wondering if the c is incremented inside the method's for-loop, will the returned "c" be the new altered "c" or will it be the one that was used as an input for the function to be called.
C# banner
C#Join
We are a programming server aimed at coders discussing everything related to C# (CSharp) and .NET.
61,871Members
Resources

Similar Threads

Was this page helpful?
Recent Announcements

Similar Threads

Console key input shenanigans
C#CC# / help
4mo ago
ssh c# implementation exaplanation of some shenanigans
C#CC# / help
6mo ago
Parameter missing
C#CC# / help
3y ago
❔ ✅ class parameter
C#CC# / help
4y ago