crackyourinterview.com


To improves our performance please Like Share Subscribe(Will boost us)

Code to check string are Equals() or not and check case sensitive in csharp
Question Posted on 03 Dec 2020Home >> DotNet >> C# >> Code to check string are Equals() or not and check case sensitive in csharp

Code to check string are Equals() or not and check case sensitive in csharp
Below code will helps us to find that string are equal or not and also find c# is case sensitive or not. Below code will helps you to understand that c# follow case sensitive.

using System;
public class Program
 {
  public static void Main(string[] args)
  {
   String x = "CrackYourInterview";
   String y = "CRACKYOURINTERVIEW";
   int z;
   z = x.CompareTo(y);
   Console.WriteLine(z);
  }
 }

And answer of above code is -1 which means c# is case sensitive
0
0



.


Most Visited Questions:-

Deep Learning Questions Answers
Below are the different Deep Leaning Questions and answer a More...

Continuous Integration Questions Answers
Below are the 20 odd questions for CI or Continuous Integra More...

Derived relationships in Association Rule Mining are represented in the form of __________.
Derived relationships in Association Rule Mining are repres More...

What is Gulpjs and some multiple choice questions on Gulp
Gulpjs is an open source whihc helps in building Javascript More...

Microservices Architecture Questions Answers
Below are the different questions on Microservices Architec More...




Other Important Questions

Simplest definition of partial classes and its rules?

Definition of Tuple class with some examples?

Define Race Condition in cSharp?

C#.Net Reserve Words

can we inherit private class level variables in c#






@2014-2022 Crackyourinterview (All rights reserved)
Privacy Policy - Disclaimer - Sitemap