Click here to Skip to main content
15,923,051 members
Home / Discussions / C#
   

C#

 
AnswerRe: Getting unique key Pin
dan!sh 4-Jan-09 22:52
professional dan!sh 4-Jan-09 22:52 
QuestionNumber of client connections Pin
George_George4-Jan-09 18:26
George_George4-Jan-09 18:26 
QuestionMultiline textbox Pin
yesu prakash4-Jan-09 17:13
yesu prakash4-Jan-09 17:13 
GeneralRe: Multiline textbox Pin
Luc Pattyn4-Jan-09 17:40
sitebuilderLuc Pattyn4-Jan-09 17:40 
AnswerRe: Multiline textbox Pin
Dragonfly_Lee4-Jan-09 21:21
Dragonfly_Lee4-Jan-09 21:21 
AnswerRe: Multiline textbox Pin
Seraph_summer5-Jan-09 1:46
Seraph_summer5-Jan-09 1:46 
QuestionReading an objects Namespace Pin
thrakazog4-Jan-09 14:06
thrakazog4-Jan-09 14:06 
AnswerRe: Reading an objects Namespace Pin
Dragonfly_Lee4-Jan-09 21:34
Dragonfly_Lee4-Jan-09 21:34 
GeneralRe: Reading an objects Namespace Pin
thrakazog5-Jan-09 6:17
thrakazog5-Jan-09 6:17 
QuestionVS 2005 and Setup and Deployment Project Shortcuts Pin
paas4-Jan-09 5:23
paas4-Jan-09 5:23 
AnswerRe: VS 2005 and Setup and Deployment Project Shortcuts Pin
Not Active4-Jan-09 10:45
mentorNot Active4-Jan-09 10:45 
GeneralRe: VS 2005 and Setup and Deployment Project Shortcuts Pin
paas4-Jan-09 11:48
paas4-Jan-09 11:48 
GeneralRe: VS 2005 and Setup and Deployment Project Shortcuts Pin
Not Active4-Jan-09 11:53
mentorNot Active4-Jan-09 11:53 
GeneralRe: VS 2005 and Setup and Deployment Project Shortcuts Pin
paas5-Jan-09 1:16
paas5-Jan-09 1:16 
QuestionRe: VS 2005 and Setup and Deployment Project Shortcuts Pin
Alex Pitchford9-Aug-10 6:01
Alex Pitchford9-Aug-10 6:01 
AnswerRe: VS 2005 and Setup and Deployment Project Shortcuts Pin
paas9-Aug-10 7:09
paas9-Aug-10 7:09 
GeneralRe: VS 2005 and Setup and Deployment Project Shortcuts Pin
Alex Pitchford10-Aug-10 7:04
Alex Pitchford10-Aug-10 7:04 
Questionchar & string? Pin
dec824-Jan-09 4:21
dec824-Jan-09 4:21 
AnswerRe: char & string? Pin
Guffa4-Jan-09 4:32
Guffa4-Jan-09 4:32 
GeneralRe: char & string? Pin
dec824-Jan-09 5:40
dec824-Jan-09 5:40 
GeneralRe: char & string? Pin
CPallini4-Jan-09 5:52
mveCPallini4-Jan-09 5:52 
GeneralRe: char & string? Pin
Colin Angus Mackay4-Jan-09 5:54
Colin Angus Mackay4-Jan-09 5:54 
GeneralRe: char & string? Pin
Guffa4-Jan-09 8:19
Guffa4-Jan-09 8:19 
GeneralRe: char & string? Pin
#realJSOP4-Jan-09 11:00
professional#realJSOP4-Jan-09 11:00 
AnswerRe: char & string? Pin
CodingYoshi4-Jan-09 16:00
CodingYoshi4-Jan-09 16:00 
an82 wrote:
har com[2]="my text;


Your syntax is incorrect but I think I know what you are asking. Here is the correct syntax:

char com[2] = {'A', 'b'};

You are creating an array which has 2 chars in it.


an82 wrote:
string com[2]="my text";


string com[2] = {"Correct", "Version"};

Here you are creating an array of strings, not chars. String type is actually an array of chars. This is an "array of chars of array of chars".

When you create a char array you can store characters in them. In a string array you can store strings (one character can also be a string).

Read about arrays, strings, and chars if you are still confused.

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.