C语言常用笔试题

1.在X86系统中,如下变量在内存中的字节存放顺序。

C语言常用笔试题

DWORD Value1=0x8010011c

UINT Value2=12801

I和Unicode有什么区别?汉字是如何显示的?

3.说出你最熟悉的'三种排序方法,用你最熟悉的语言写出其中一种。

flag

Floot x 与“零值”比较

Char *p

5.是否了解MVC模式,其中M、V、C各表示什么?

6.列举出你曾经用过或者了解的几种设计模式?

iVal1 = 0, iVal2 = 0;

int * ipVal;

ipVal = &iVal1; What is the Value of ipVal = *ipVal =

ipVal = (int*)iVal1; What is the Value of ipVal = *ipVal =

iVal2 = (int)&iVal1; What is the Value of ipVal = *ipVal =

SwapAB(int A, int B)

{

A=B;

B=A;

}

int main()

{

int A,B;

A=1;

B=2;

SwapAB(A,B);

return 0; // A= ?, B= ?

}

What is the value of A and B ?

What is the difference between STRUCTURE and OBJECT ORIENTED PROGRAMMING ?

What is the difference between C and C++ ?

What is an interpreter ?