我什么時(shí)候應(yīng)該使用帶有scanf(&)的&符號(hào)使用時(shí)在c中使用&符號(hào)的規(guī)則是什么scanf()?struct Student {
char name[20];
int id;};int main(void){
struct Student std1;
printf("enter name and id of std1\n");
scanf("%s %d", std1.name, &(std1.id));}為什么對(duì)于String我不需要使用&符號(hào),因?yàn)閕nt我必須使用它?是否有關(guān)于何時(shí)使用&符號(hào)的規(guī)則?
我什么時(shí)候應(yīng)該使用帶有scanf(&)的&符號(hào)
明月笑刀無(wú)情
2019-08-13 16:16:25