Posts

Showing posts with the label c#

Key Difference Between C# and C++

Image
Key Difference Between C# and C++ C++ C++ is a low level programming language that adds object-oriented features to its base language C whereas  C#  is a high level language. C++ compiles down to machine code whereas  C#  ‘compiles’ down to CLR (Common Language Runtime), which is interpreted by JIT in ASP.NET. C++ is an object-oriented language while C# is considered a component-oriented programming language. In C++ you need to manage memory manually whereas  C#  runs in a virtual machine, which performs memory management automatically. In C++ development should follow any specific architecture and must be portable whereas  C#  development should be simple, modem, general-purpose, object-oriented programming language.    C# C#  is a high level language and  C#  development should be simple, modem, general-purpose, and object-oriented. C#  is considered a c...
Image
More about recursion in C#. Do the full C# course https://pcworkshopslondon.co.uk/c-sharp-programming-course.html In a recursive method with C#, we need two properties: 1) The base case (or cases) is a terminating scenario. the base case will instruct the recursion to stop , and the method return back to its orginal call. The base case does not use recursion to produce an answer, it is rather simple like an if statement. 2) The second property is "recursive steps". statements that should be executed repetitively, but with every iteration using a value that it either more or less than the previous iteration. Importantly, this value change should reduce the successive cases and work towards achieving the base case. The repetition is effected by the method calling itself, rather than a loop https://youtu.be/nUnxNR0JKRk Did you know? Ouroboros, is an ancient symbol depicting a serpent or dragon eating its own tail (stop condition? .... not sure if this ancient symbol qui...