What happens when I initialize a char array without setting the array size in C

后端 未结 0 1379
醉梦人生
醉梦人生 2021-01-24 09:06

When I initialize a char array like char str1[] = {\'a\',\'b\',\'c\'} (array size is not set) and finding it\'s length using loop until str1[i] != \'\\0\'

相关标签:
回答
  • 消灭零回复
提交回复
热议问题