Time:10-12
CodePudding user response:
A, B, sure is correct, and the answer?
to a pointer to the function, the change in a function pointer, after the function pointer remains unchanged, but the function of the internal pointer to change address, after the function that address will change, the content of the
Quote: refer to the third floor truth is right or wrong response: pass in a pointer to the function, change in a function pointer, after the function pointer remains unchanged, but the function of the internal pointer to change address, after the function that address will change, the content of the is the function of address? Or s address
pass in a pointer to the function, change in a function pointer, after the function pointer remains unchanged, but the function of the internal pointer to change address, after the function that address will change, the content of the
Quote: refer to 4th floor m0_46236484 response: Quote: refer to the third floor truth is right or wrong response: to a pointer to the function, the change in a function pointer, after the function pointer remains unchanged, but the function of the internal pointer to change address, after the function that address will change, the content of the is the function of address? Or s address What is the relationship between function's address? Such as void test (int a) {A=10; } So you so call Int x=20; The test (x); //here or 20 x; Not be 10; Pointer, a pointer is the address, the address is a number, said a memory area, So the change in the function pointer, outside have no effect, unless you change the address of the content of the memory area,
Quote: refer to the third floor truth is right or wrong response: to a pointer to the function, the change in a function pointer, after the function pointer remains unchanged, but the function of the internal pointer to change address, after the function that address will change, the content of the is the function of address? Or s address
the result is a [0] o value is 1. The reason is that s=(int *) malloc (sizeof (int)); This line to s new address assignment, so fun function will not have any effect,
Page link:https//www.codepudding.com/Backend/63192.html