LoginSignup
0
1

More than 1 year has passed since last update.

Cプログラマーがnull文字と空文字の違いを理解する

Last updated at Posted at 2023-01-06

違いをはっきりさせたいのですが、
以下の理解であってます?

null文字を代入する

char *null_str;
null_str = 0;

空文字を代入する

char void_str[1];
void_str[0] = 0;
0
1
6

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
0
1