How to Pass Function as Parameter in Python (Numpy)? November 8, 2014 code, programming languages, python No Comments If you want to compute x2 you can easily write a function in Python like this: def sqr(x): return x * x # or x ** 2 If you … [Continue Reading...]
Passing String or StringBuilder to Function in C# (By Value or By Reference) October 23, 2014 beginner, c #, programming languages, string, syntax 4 Comments What happens if you pass a string type to a function? Does it pass by value or reference? What happens if you pass StringBuilder? In C#, the string is … [Continue Reading...]