0
Follow
0
View

C language array assignment problem, beyond the initial limit

dadada3046 注册会员
2023-02-27 18:43

char a[3]="123"; Is a string that defines a 3-byte array with an initial value of "123"(followed by a '\0'). Although there is no space, '\0' is not assigned to array A, but the compiler does not check for this error.

About the Author

Question Info

Publish Time
2023-02-27 18:43
Update Time
2023-02-27 18:43