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fQAAAEMm9QEAAAyZ1AcAADBkUh8AAMCQSX0AAABDJvUBAAAMmdQHAAAwZFIfAADAkEl9AAAAQyb1AQAADJnUBwAAMGRSHwAAwJBJfQAAAEMm9QEAAAyZ1AcAADBkUh8AAMCQSX0AAABD1lfqO3369fT1l16Zfnua8u2Tvzx58uT3D46OPn7v1ls33n+QNFEHD24fHvzotbfe+/jB45Py335958rSzz7+454WDwAAcO56SX3//pt//OtLWZZlWXY4mT1bffrdb4/uTe/cWnrrtR9fuXLlypXD1ffyRq9+8t1ykvl0XP1zuvF0XijXg9sHq7/cuH9cLvRsEpkKAABgQPrp63s2mxxWMtwmVjU7vL3s7us39T26e2UT+u6nFyYwJwAAgOdVbyM8H9ze5r5r029P61Lf6ODylStXrly/cevWrfc+Pjp68PsfjvtPfZvQN3rj0+MWEbQ6JwAAgOdWf09zyeW+0cvv/y6X+n78j7958uTJkydPVtkubpv6WsSuyESb4Z2jNz49Xvzul7dKfnJ1NdXBtTfLf7v1/hdPO1YDAADAhfL/AzQ4J24XJY9hAAAAAElFTkSuQmCC这个是在scanf()的说明中看到的
第三句话的意思总感觉还有其他的情况
那么有没有可以不加&的时候呢?
谢谢
本帖最后由 风扫地 于 2018-10-27 13:50 编辑
有。
int p= 0;
int*q= &p;
scanf("%d",q);
一个在A函数内可见而在B函数内不可见的变量,怎么样才能在B函数内改变这个变量的值了?
就是把这个变量取地址后传递给B函数,B函数再通过指针(他的地址)来访问(读取或者改写)这个不可见的变量。.
scanf就是前面提到的B函数。
printf就是打印值,只读不写,不会改变要打印内容的值,所以不需要取地址。
所以你说的第三句话是啥?在哪里看到的。 一个变量,其值本身就是一个地址表的时候 可以不用加 &
int *a = (int *)malloc(sizeof(int));
scanf("%d", a);
printf("%d", *a); 指针就不需要,包括非纯量,但是用的时候要小心
int a, double b, char c 都需要,
int arr[], char str[] 字符串不需要,数组看情况
其他的就依样画葫芦,结构体成员是哪一个类型就用哪一个
scanf("%s", str); // %s 不是 %c
for(int i = 0; i < n; i++)
scanf("%d", arr+i); //数组名是首地址
for(int i = 0; i < n; i++)
scanf("%d", &arr); //下标等同解引用,变回【值】了,所以要取地址
指针和字符串
页:
[1]