Linux kernel driver development

Source: Internet
Author: User
Linux kernel driver development-Linux general technology-Linux programming and kernel information. For more information, see the following. 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] );
}

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) * (&); (C) p; (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 can't remember the specific questions about the operating system. The general meaning is as follows: In a multitasking operating system, which of the following communication methods can be used between tasks? How can tasks be mutually exclusive (for example)? If you miss a test site, you cannot remember it. Remember to add it 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, you can't 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.

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.