4socket函数的函数原型是
A: int socket(int family, int type, int protocol)
B: int socket(int sockfd,struct sockaddr *my_addr, int addrlen)
C: int socket(int sockfd, int backlog)
D: int socket(int sockfd, struct sockaddr *serv_addr, int addrlen)
A: int socket(int family, int type, int protocol)
B: int socket(int sockfd,struct sockaddr *my_addr, int addrlen)
C: int socket(int sockfd, int backlog)
D: int socket(int sockfd, struct sockaddr *serv_addr, int addrlen)
举一反三
- 下面是关于结构类型与变量的定义语句,错误的是________。 A: struct test{int a; int b; int c;}; struct test y; B: struct test{ int a; int b; int c;} struct test y; C: struct test{ int a; int b; int c;} y; D: struct { int a; int b; int c;} y;
- 下面结构体的定义语句中,正确的是( ) A: struct { int x; int y; int z;}ord;struct ord a; B: struct { int x; int y; int z;}ord;ord a; C: struct ord{ int x; int y; int z;};struct ord a; D: struct { int x, int y, int z;}a;
- 以下结构体的定义语句中,错误的是_____ A: struct ord{ int x; int y; int z;};struct ord a; B: struct ord{ int x; int y; int z;}struct ord a; C: struct ord{ int x; int y; int z;}a; D: struct{ int x; int y; int z;}a;
- 以下结构体定义错误的是 A: struct ord {int x; int y} struct ord a; B: struct ord {int x; int y} ; struct ord a; C: struct ord {int x; int y} a; D: struct {int x; int y} a;
- 若有一函数定义为int fun(int x, int *y){ return (*y)/x; }该函数的函数原型额正确形式是() A: void fun(int ,int); B: int *fun(int ,int *) C: int fun(int *, int *); D: int fun(int, int *);