> For the complete documentation index, see [llms.txt](https://whs3-doge5k.gitbook.io/smartcontract-security-docs/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://whs3-doge5k.gitbook.io/smartcontract-security-docs/basics/2./undefined/undefined/reference-types.md).

# 참조 타입(Reference Types)

## string

* 임의의 길이를 가진 UTF-8 데이터를 위해 활용된다. (동적 크기)
* 예시) `string hello = "Hello, world!"`
* memory 키워드와 함께 함수 내에서 다뤄진다.

```solidity
string public name = "doge";

function setname(string memory _name) public {
   name = _name;
}
```
