본문 바로가기
C#

string 형식의 이해

by JAESEONG LEE- developer 2022. 7. 15.

string 형식은 char 처럼 각각 쓰는 것이 아니라

 

하나의 실로 주루룩 묶어서 처리할 수 있는 방식입니다.

 

 

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
using System;
 
namespace String
{
    class MainApp
    {
        static void Main(string[] args)
        {
            string a = "안녕하세요?";
            string b = "이재성입니다.";
 
            Console.WriteLine(a); 
            Console.WriteLine(b); 
        }
    }
}
cs

 

실행 결과입니다.

'C#' 카테고리의 다른 글

object 형식의 이해  (0) 2022.07.15
논리 형식 bool의 이해  (0) 2022.07.15
Char 형식의 이해  (0) 2022.07.15
Decimal 형식의 이해  (0) 2022.07.15
부동 소수점 형식  (0) 2022.07.15