Skip to main content

Posts

Showing posts from October, 2019

Params in C#

C# HAS A FEATURE. IT CAN SPECIFY A METHOD PARAMETER WHICH WILL TAKE A VARIABLE NUMBER OF  ARGUMENTS. WE USED TO DO THOSE THINGS BY USING POINTER IN C++ C# MAKES OUR LIFE EASIER. ALL WE NEED IS A KEYWORD. AND THAT IS "PARAMS" LET'S HAVE THE FUN REMEMBER, THE PARAMS PARAMETER MUST BE A SINGLE ARRAY.   public class MyClass         {                          public static void amarmethod(params int[] amararrayerkichuelements)             {                                 for (int i = 0; i < amararrayerkichuelements.Length; i++)                 {                     Console.Write(amararrayerkichuelements[i] + " ");                 } ...

Playing with bits...... | PART- 1 |

Hello Code peoples..... How are you doing ? Actually, it's a long time after publishing my last blog about important sites of dynamic programming. Now it's time to discuss some crucial thing about bits. Let's begin. Bits: What are bits ??  Do those things hurt me ? or is it quite difficult to learn the strategy of bit manipulations ? Opppsssss..!!! I use a couple of boring words like b-i-t m-a-n-i-p-u-l-a-t-i-o-n-s Don't afraid. This idea is simple... You know what , bit are more or less a unit.. You can assume a bit as a unit of words.. Do you know the words of computer ? It's 0 and 1... Computer is not versatile as human being as it can talk or manipulates its system by using multiple language.  In computer, all the numbers and all the other data are stored using 2 based number system or in binary format.. Like "10010100" or "00000000" .. See ?? 1 and 0's only. here a single 1 or single  0 will be considered as a...