> For the complete documentation index, see [llms.txt](https://beej-c-zhtw.netdpi.net/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://beej-c-zhtw.netdpi.net/3.-bian-shu-yu-chen-shu-shi/3.1.-bian-shu/3.1.1.variable-name.md).

# 3.1.1. 變數名稱

您可以使用範圍在 0-9、A-Z、a-z 之間與底線的任何字元作為變數名稱，規則如下：

* 變數開頭不能是數字0-9。
* 變數名稱的開頭不能是兩個底線。
* 變數名稱的開頭不能是底線加上大寫字母A-Z。

如果是 Unicode（萬國碼），請試試看。在§D.2的規格中，有一些規則會討論 Unicode 中哪些部分允許使用哪些 Unicode 的字碼點（codepoint）範圍，但是這裡寫不完，說不定你可能永遠都不會想要用到。


---

# Agent Instructions
This documentation is published with GitBook. GitBook is the documentation platform designed so that both humans and AI agents can read, navigate, and reason over technical content effectively. Learn more at gitbook.com.

## Querying This Documentation
If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://beej-c-zhtw.netdpi.net/3.-bian-shu-yu-chen-shu-shi/3.1.-bian-shu/3.1.1.variable-name.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
