pointers and arrays

Please add a picture description
What will the above program output? str1 and str2 are two arrays, respectively pointing to their first element h, str1 and str2 are two different arrays, the system has opened up space for them respectively, in the analysis of str3 and str4, str3 and str4 store a string of constants Strings, store constant strings in the system, the system will not open up additional memory space for them, so here str3 and str4 point to the address of h of hellobit at the same time, in this question the if judgment statement is the memory address of the judgment, so str1 does not It is equal to str2, and both str3 and str4 point to the hello bit, so they are equal when dereferencing
Please add a picture description

Guess you like

Origin blog.csdn.net/Kirihara_Yukiho/article/details/123222810