Mans: Thebestone (Simple Life), the letter area: C
Title: [Collection] ZTE interview C language questions (2)
Sending station: Drinking water thinking (January 20, 2002 17:24:18 Sunday), station letter
☆ ───────────────────────────────────────────────────────────── ◎ Do not leave I am too close!) On November 13, 2001, 15:48:20 Tuesday mentioned: 〖〖〖文 文 区 区 区 区 区 区 区 区 区 区 区 区 区 区 区 区 区 区 区 区 区 区 所 所 所 所 所 所 所 所 所The dogma on the compile book. 〖〖◎ ◎ 太 太 太 太 大 中〗〗〗 Store classes, so they are stored in the static data area of the program, not: Where is this? ---- ^^^^^^^^ :: stack is not HEAP. In addition, P and A [] are implicit initialized to 0, but just as global variables: ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ : What is it, I really want to know: In case, if it is a local variable, it is not automatically initialized. Who can tell me why? ☆──────────────────────────────────── ─ ☆ Huaihuai ( Bad bad ◎ // ◎ Don't take me too close!) On November 13, 2001 15:27 Tuesday mentioned: Isn't it true now? I really want to know. I don't know which prawn knows help me explains the explanation saying // BOW ☆ - --────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────── ─ ─ ─ ☆ Law (Game * Life) in Tue Nov 13 16:08:59 2001) mentioned: #pragma pack (n) Specifies alignment, which is not standard, but VC and GCC recognize. The local variable is placed in the stack, the global and static variables are divided into initialized, not initialized, such as Char S [100]; char s [100] = "Hello"; GCC put them in different segments. BSS and .DATA. There is also a constant variable, such as Printf ("Hello"); "Hello"; GCC will also put them in a special segment. You can also use GCC extended keywords __attribute __ (section (". YourData")); how to define a special segment VC, I have a bit forgot. The so-called pile, the static data area is just a formulation. It means that you can understand, there is nothing to argue, HEHE. ☆ ───────────────────────────────── ☆ Browny (a fire in winter) on November 13, 2001 21:23:59 Tuesday mentioned: the address, compilation in the assembly, did not remember. Ask the first segment of the BSS, DATA, and stack segments, is it in which registers? What is the address of the segment and the following address into the actual address? I also hope to point out guidance! ☆ ───────────────────────────────────────────────────────────── ◎ Do not leave I am too close to November 13, 2001 21:43:26 Tuesday mentioned: Today I saw a "80386 ejected programming in the library", I suggest you go to see.