Feb 19, 2011 · 3 min read
The question is, in C++, how do detect if an object is allocated on the stack or heap.
Dec 21, 2010 · 1 min read
You may not know the guy in black. You should definitely be knowing the guy in green.
Dec 21, 2010 · 1 min read
Alright, it is a long wait. And I am going to keep it short.
Oct 28, 2010 · 2 min read
Straight to code….. int SomeMethod(string arg1, string arg2, ref DayOfWeek arg3) { // Wildest implementation!
Oct 3, 2010 · 5 min read
Currying is a mathematical concept based on lambda calculus. It is a technique of operating on a function (taking multiple arguments) by splitting and capable of chaining into a series of single argument functions.
Apr 10, 2010 · 7 min read
template<typename A, typename B> class TClass { public: TClass() { } // Overload #1 public: std::string SomeMethod(A a, B b) { std::ostringstream ostr; ostr << a << "-" << b; return ostr.
Mar 5, 2010 · 3 min read
We all know C# does not offer multiple inheritance but offers arguments that programmers can live without it.
Dec 29, 2009 · 5 min read
There are two facilities in C# to determine the size of a type – sizeof operator andMarshal.
Sep 2, 2009 · 3 min read
Senthil has left us thrilled in his new post, and also inspired me to write about the topic.
Jul 1, 2009 · 2 min read
Let us read some code:-
int SomeMethod() { int num = 1; try { num = 5; return num; } finally { num += 5; } } What is the return value of SomeMethod?