應(yīng)用開(kāi)發(fā)工程師簡(jiǎn)答筆試題
簡(jiǎn)答題
16:類(lèi)的靜態(tài)成員和非靜態(tài)成員有何區(qū)別?
17:Consider the following code:
#include
#include
int main(int argc, char *argv[]) {
int i = 1;
char buf[4];
strcpy(buf, "AAAA");
printf("%d ", i);
return 0;
}
a) When compiled and executed on x86, why does this program usually not output what the programmer intended?
b) Name several ways in which the security problem that causes this program not to output what the programmer intended can be prevented WITHOUT changing the code.
18:#include
void main()
{ int a[5] ={2,4,6,9,12},b[6] ={2,3,4,6,8,9};
for(int i=0;i<5;i++)
for(int j=0;j<6;j++)
if(*(a+i)==*(b+j) printf( ″ %d ″ ,*(a+i));
printf( ″ n ″ );
} 輸出結(jié)果: _______
19:Write a function escape(s,t) that converts characters like newline and tab into visible escape sequences like and as it copies the string t to s . Use a switch . Write a function for the other direction as well, converting escape sequences into the real characters.
【應(yīng)用開(kāi)發(fā)工程師簡(jiǎn)答筆試題】相關(guān)文章:
應(yīng)用系統(tǒng)開(kāi)發(fā)工程師筆試題目04-16
Java開(kāi)發(fā)工程師上機(jī)筆試題04-17
軟件開(kāi)發(fā)工程師筆試題04-01
C語(yǔ)言開(kāi)發(fā)工程師選擇試題12-25
java開(kāi)發(fā)工程師模擬試題201708-20
Java軟件開(kāi)發(fā)工程師筆試題寶典10-15