I. Some General C questions
Question 1: Write the following program results:
Int m [] [3] = {, 9 };
Int I, j, k = 2;
For (I = 0; I <3; I ++ ){
Printf ("% d", m [k] [I]);
}
Question: The dual array is displayed at a glance!
Question 2: Which of the following references is incorrect?
Int a [10] = {0, 1, 2, 3, 4, 5, 6, 7, 8, 9}, * p =;
(A) a [p-a]; (B) * (& a [I]); (c) p [I]; (D) * (a + I ));
Question 3: Which of the following four options has 6 results?
Int a [10] = {0, 1, 2, 3, 4, 5, 6, 7, 8, 9}, * p =;
(A) * p + 6; (B) * (p + 6); (C) * p + = 5; (D) p + 5;
Question 4: for Binary Trees, draw a binary tree chart in the forward and middle order;
Question 5: I cannot remember the specific questions about the operating system. The general meanings are as follows:
In a multitasking operating system, what types of communication methods are available between tasks? How tasks are mutually exclusive (for example );
I missed a test site and couldn't remember it. Remember to make it up again!
Ii. Some strange questions (don't get me wrong, not those that are not used at ordinary times, but the original questions on the internet, ^ _ ^)
Another strange image of this company's pen exam is that it directly puts the questions that have been on the Internet for a long time ago (it can be said that it is a classic Embedded C pen exam, I already have some questions in my "several classic C language interview questions" post.) I have put you in the exam to test you. There are about three questions in total, two of which are original and unchanged, the specific questions are as follows:
1. Write a "standard" macro MIN, which inputs two parameters and returns a smaller one.
2. Specify an integer variable a and write two pieces of code. Set bit 3 of a first, and then clear bit 3 of. In the preceding two operations, you must keep the other bits unchanged.
3. In a project, the value of an integer variable whose absolute address is 0x67a9 must be set to 0xaa66. Write code to complete this task. (Note: This question has been changed a little. Oh, it's just that the text has changed. It's getting longer, ^ _ ^. Well, the address should have changed. Alas, I cannot remember it !)
3. Another question in "high quality C ++-C Programming Guide"
What is the use of ifndef/endif in the header file? (Haha, define is missing compared to the original question )!
There are also a series of questions about struct, ++, and;