Sizeof doesn't return the true size of variable in C

后端 未结 8 1059
醉梦人生
醉梦人生 2020-12-22 10:47

Consider the following code

#include 

void print(char string[]){
 printf(\"%s:%d\\n\",string,sizeof(string));
}

int main(){
 char string[] =         


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