Summary: 20 multiple-choice questions, 2 programming questions
Question 21: Matching of (){}
Question 22: Find the sum of two strings of numbers
char *sum(const char *num1, const char *num2);
num1 and num2 are 0-99 in length
Question 1: The frequency is 2000HZ and the duty cycle is 40%. What is the width in one cycle? (200us)
Question x: Structure __attribute__(packed), what is the size of the structure? (unaligned memory)
y Subject: makefile Statement: Can include? make 寻 找 GNU makefile, Makefile, makefile?
Question z: Pipeline: Full Duplex? Will reading and writing be blocked? Can read and write at the same time?
U question: I2C, SPI, RS232
Question v: GPIO
w Question: Array of function pointers, function parameter is int *, return int? int (*a[10])(int *);
Question r: What can be a virtual function?
Question s: Store 100 random numbers and then traverse them. What is the most appropriate structure? (Linked list? Linear list? Graph?)
Question t: Error in printf("%o")?