6
Answers

NP78 IsWhiteSpace

Maha

Maha

16y
6.1k
1

Hi Guys

 

NP78 IsWhiteSpace

 

What is meant by IsWhiteSpace?. Why when 5 output is True and when 6 out put is False. Anyone knows please explain.

 

Thank you

 

using System;

class MyDataTypes

{

   public static int Main(string[] args)

   {

      Console.WriteLine("-> char.IsWhiteSpace('Hello There', 5): {0}",

      char.IsWhiteSpace("Hello There", 5));

 

      Console.WriteLine("-> char.IsWhiteSpace('Hello There', 6): {0}",

      char.IsWhiteSpace("Hello There", 6));

     

      return 0;

   }

}

/*

-> char.IsWhiteSpace('Hello There', 5): True

-> char.IsWhiteSpace('Hello There', 6): False

*/

Answers (6)