AI智能整理导入 AI智能整理导入
×
首页 题库中心 c语言程序设计题库 题目详情
CA85E835B92000012B50FB49F93816B5
c语言程序设计题库
1,073
单选题

在下面的函数声明中, 存在着语法错误的是( )

A
int BF(int x ; int y) ;
B
void BC(int a , int) ;
C
void BD(int , int) ;
D
void BE(int , int=5) ;

答案解析

正确答案:A

解析:

函数
c语言程序设计题库

扫码进入小程序
随时随地练习

相关题目

单选题

语言结构体类型变量在程序执行期间( )。

单选题

在16 位IBM-PC机上使用C语言, 若有如下定义:
struct data
{int i;
char ch;
double f;
} b;
则结构变量b 占用内存的字节数是( )。

单选题

以下程序的运行结果是( )。
# include “stdio.h”
main ( )
{ struct date
{ int year , month , day ;
} today ;
printf (“%d\n”,sizeof(struct date));
}

单选题

根据下面的定义, 能打印出字母M的语句是( )。
struct person
{ char name[9];
int age ;
}struct person class[10]={“John",17,“Paul”,19,“Mary”,18,“adam",16};

单选题

下面程序的运行结果是( )。
main ( )
{ struct cmplx { int x;
int y;
} cnum[2]={ 1 , 3 , 2 , 7 };
printf ("%d\n", cnum[0].y/cnum[0].x*cnum[1].x);
}

单选题

若有以下定义和语句:
struct student
{ int age;
int num;
};
struct student stu[3]={{1001,20},{ 1002,19},{1003,21}};


main( )
{ struct student *p;
p=stu;

}
则以下不正确的引用是( )。

单选题

以下scanf 函数调用语句中对结构体变量成员的不正确引用是( )。
struct pupil
{ char name[20];
int age;
int sex;
} pup[5],*p;
p=pup;

单选题

有以下定义和语句, 则值为6 的表达式是( )。
struct s
{ int i1;
struct s *i2;
};
static struct s a[3]={5,&a[1],7,&a[2],9,'\0'},*ptr;
ptr=&a[0];

单选题

设有如下定义:
struct sk
{int n;
float x;
} data,*p;
若要使p指向data中的n域, 正确的赋值语句是( )。

单选题

若有以下说明和语句:
struct student
{ int age;
int num;
} std,*p;
p=&std;
则以下对结构体变量std 中成员age 的引用方式不正确的是( )。

关闭
专为自学备考人员打造
试题通
自助导入本地题库
试题通
多种刷题考试模式
试题通
本地离线答题搜题
试题通
扫码考试方便快捷
试题通
海量试题每日更新
试题通
欢迎登录试题通
可以使用以下方式扫码登陆
试题通
使用APP登录
试题通
使用微信登录
xiaochengxu
联系电话:
400-660-3606
xiaochengxu