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
Zafar Anwar
NA
1
0
Single speacl quote char in C# String.
Jun 1 2012 6:49 AM
Hi All,
I have a question. Could you please let me know the reason for the following two characters?
1) ' = 8217 - Ascii value, binary value
10000000011001
2) ' = 39 - Ascii value, binary value 100111
A) Why do programmers delete non-ascii or on-printable characters from a string when we can store and print them?
we can store (1) as string1 = "Doesn't matter"; and also print it.
we can store (2) as string2 = "Doesn't matter"; and also print it.
B) If (1) gets stored in a string, what format does the .net framework system stores it internally?
C) if (1) gets compared with other string, what format does the system represent the string in before actual comparison?
Could anyone please let me know at the earlier?
Thank you so much!
Reply
Answers (
1
)
C#
i want to generate sequense of number like 1-5,6-10,11-15 instead of 1,5,10,15 in vb.net