Already have an account? Get multiple benefits of using own account!
Login in your account..!
Remember me
Don't have an account? Create your account in less than a minutes,
Forgot password? how can I recover my password now!
Enter right registered email to receive password!
Counting Number of Words in a String - C# Program
Anyone can suggest me the output of the following program.
using System;
class CountWords
{
public static void Main()
string s = ""; // Declare 's' of string type
Console.Write("Enter the string : ");
S = Console.ReadLine(); // Read string from the console & save in 's'
string [] words = s.Split(null);
// 'words' is an array of string type
// string 's' will split when a space (null) is encountered
// This will be saved into array words
int i = words.Length; // Just count the lenght of array 'words'
Console.WriteLine("The total number of words in the entered string : "+i);
Console.ReadLine();
}
Explain the diffrent type of literals in c# The different types of literals in C# are: Boolean literals - Refers to the True and False literals that map to the true and fals
What is MVC pattern? The main purpose of using the MVC pattern is to decouple the GUI from the Data. It also gives the ability to provide multiple views for the same Data. Th
how socket workes in .net
Explain project life cycle. Figure: -Life cycle of a project There are 5 stages of any project initiating, planning, executing, controlling, & closeout. These are the
What is a node? A network can have of two or more computers directly linked by some physical medium such as coaxial cable or optical fiber. Such a physical medium is known as L
What is garbage collection? Explain the difference among garbage collections in .NET 4.0 and earlier versions. Garbage collection stops memory leaks during execution of pro
How to decide on the design consideration to take a Datagrid, datalist or repeater? So many make a blind choice of choosing datagrid directly, but that is not the right way.
Give a brief introduction to Binders. Binders are used by DLR to communicate with not the .NET Framework but also with a variety of other services, like Silverlight and COM. Th
Application of durkheim''s theory of crime in explaining the crime context in south Africa. Highlighting the relevance of the theory, as well as its limitations
I need .net expert help for Advance Project First let me start by saying that I have been writing code for almost 25 years. Therefore I am only looking for someone to aid advanc
This a very easy example... the output is: Enter the string : Daljit is making programs The total number of words in the entered string : 4
This a very easy example... the output is:
Enter the string : Daljit is making programs The total number of words in the entered string : 4
Get guaranteed satisfaction & time on delivery in every assignment order you paid with us! We ensure premium quality solution document along with free turntin report!
whatsapp: +91-977-207-8620
Phone: +91-977-207-8620
Email: [email protected]
All rights reserved! Copyrights ©2019-2020 ExpertsMind IT Educational Pvt Ltd