TECHNOLOGIES
FORUMS
JOBS
BOOKS
EVENTS
INTERVIEWS
Live
MORE
LEARN
Training
CAREER
MEMBERS
VIDEOS
NEWS
BLOGS
Sign Up
Login
No unread comment.
View All Comments
No unread message.
View All Messages
No unread notification.
View All Notifications
Answers
Post
An Article
A Blog
A News
A Video
An EBook
An Interview Question
Ask Question
Forums
Monthly Leaders
Forum guidelines
Maha
NA
0
324.2k
Reason for different o/p
Sep 8 2013 11:44 AM
Following program reverses the i/p.
When you remove following code
Console.Write("Reverse number: ");
Console.Write(arrayChar);
and inserted following one
Console.Write("Reverse number: " + arrayChar);
o/p for whatever i/p is
Reverse number: System.Char[]
Please explain the reason for
different
o/p. Problem is highlighted.
using System;
class Program
{
static void Main()
{
Console.Write("Enter any number: ");
string s = Console.ReadLine();
char[] arrayChar = s.ToCharArray();
Array.Reverse(arrayChar);
Console.Write("Reverse number: ");
Console.Write(arrayChar);
Console.ReadLine();
}
}
Reply
Answers (
2
)
how edit listbox
.NET