Hi Programmers , Welcome to new Article of Ozanecare. This article i am going to explain Convert Stack into String in c#.net. In c# we should use Stack class , It is based on the principle of LIFO (Last in First Out). The two important methods used push and pop. the push method pushes an […]
Month: July 2020
String Pool in C#
Hi programmers , welcome to new article of ozanecare. this article i am going to explain the string pool in c# programming language. The String Pool : If multiple string literal or string object hold the same string values. CLR will allocate a single memory location. see below image. the above image explain the process […]
Convert Stack to Array in C#
Hi Programmers, welcome to new article of ozanecare. This Article i’m going to write the program to store Stack elements into array using c# programming. we should use Stack.ToArray method to convert stack into array. the use of ToArray method , it copies the Stack to a new array. lets see the program. Happy Coding…Thanks.
Stack in Java
Hi Programmers , Welcome to new Article of Ozanecare. This article i am going to explain Stack programming in java . In java we should use Stack class , It is based on the principle of LIFO (Last in First Out). The two important methods used push and pop. the push method pushes an element […]
Stack in C#
Hi Programmers , Welcome to new Article of Ozanecare. This article i am going to explain Stack programming in c#.net. In c# we should use Stack class , It is based on the principle of LIFO (Last in First Out). The two important methods used push and pop. the push method pushes an element on […]
C Interview Questions and Answers
Hi Programmers, welcome to Ozanecare. In this article , i’ll important tricky C Program interview Question and Answer with detail explanation. Question 1 : Correct Answer C.Code Explanation :step 1 : if you debug/run the program then control goes to main method thereafter that go inside of the main.step 2 : i have taken one […]
How to Find Rank of an Array in C#
Hi Programmers, welcome new article of ozanecare. this article i’m going to explain all important point related with Rank Function. Rank Function ; It gets the rank (number of dimensions) of the array. For Example : one-dimension array returns rank one, two-dimension array returnsrank two and so on. Jagged Array returns rank one. Happy Coding…Thanks.
Clone vs CopyTo Methods in C#
Hi Programmers, welcome new article of ozanecare. this article i’m going to explain all important differences between CopyTo vs Clone methods in c# programming language.Let’s see. 1.CopyTo method copies the elements into another existing array but Clone method returns a new array containing all the elements in the old array. 2.CopyTo method Require index parameter […]
Merge Multiple Text Files in C#
Hi Programmers, Welcome to Ozanecare . This article is about to merge more than two text files into another file using c# programming language. we can merge multiple files using System.IO namespace.File and StreamWriter class. ReadAllLines and CreateText methods. ReadLines methodis used to read all lines of file. we must give correct file path to […]
Add Numbers in Text File C#
Hi Programmer,Welcome to Ozanecare . this article is about toAdd Numbers two text file using c#.net programming.In first file (abc1) has numeric values and also second file (abc2) has numeric values then we can perform abc1 + abc2 using c# programming language. see the below image. To Add two text files we must include System.IO […]