I want to read all the characters from the string without using the built in functions.I tried the below.
char[] str ={ 'k','r','i','s'};
for ( int i = 0; str[i]!='\0'; i++)
{
Console.WriteLine(str[i]);
}
But I get an exception because unlike in c I don't see the string here ends with a null character. Is there any other way (apart from using built functions/try catch block in case of exception) I can read all the characters of the string ?
ldleninstruction, not a method invocation.