精華區beta Tech_Job 關於我們 聯絡資訊
這是上週去BenQ面試時 考的題目 這是手機軟體部門(台北) 給大家參考一下 (三十分鐘作答)Programming 跟 OS 各十題(不過我只記得這些), 他要你各抽四題出來寫 在面試的時候 會看這份考卷 Programing 1. Global static & local static variable 2. Endian struct p1 { short a; short b; }; void func1(long * ptr) { *ptr = 0x12345678; } int main() { p1 a; func1((long *)&a); } With little endian (PC) a = ? b = ? 3. Correct following code char * str1 = "1234"; char str2[10] = "123456"; char * str3; int main() { str2 = str1; str3 = str2; } 4. implement void * memmove(void * dest, const void * src, size_t n) Note that src & dest can overlap 5. Correct following statement char * strappend(char c) { char str[10] = "abcd"; int len; len = strlen(str); str[len] = c; return str; } OS 1. Internal memory fragmentation & external 2. Race condition & solution 3. Preemptive 4. List IPC's method 5. Software engineering -- ※ 發信站: 批踢踢實業坊(ptt.cc) ◆ From: 140.113.90.70