Input with char pointer vs. char array

前端 未结 6 1940
不思量自难忘°
不思量自难忘° 2021-01-03 05:46

consider the code

#include
int main(void)
{
   char* a;
   scanf(\"%s\",a);//&a and &a[0] give same results-crashes 
   printf(\"%s\",         


        
6条回答
提交回复
热议问题