单选题下列各组类型声明符中,含义相同的一组是(  )。Aunsigned long int和longBsigned short int和shortCunsigned short和shortDshort int和int

单选题
下列各组类型声明符中,含义相同的一组是(  )。
A

unsigned long int和long

B

signed short int和short

C

unsigned short和short

D

short int和int


参考解析

解析:
在基本类型关键字char、int、float、double前加上类型修饰符short、long、signed或unsigned构成派生类型声明符。A项,unsigned long int声明无符号长整数,long声明有符号长整数,含义不同;B项,signed short int声明有符号短整数,short声明有符号短整数,含义相同;C项,unsigned short声明无符号短整数,short声明有符号短整数,含义不同;D项,short int声明有符号短整数,int声明有符号整数,含义不同。

相关考题:

请编写一个函数unsigned short fun(unsigned short s)。其中s是一个大于10的无符号整数,若s是一个n(n≥2)位整数,函数求出s的n位数之和作为函数的返回值。例如,s值为4315,则函数返回13。s值为13函数,则返回4。注意:部分源程序已存在文件PROC15.cpp中。请勿修改主函数和其他函数中的任何内容,仅在函数fun()的花括号中填写若干语句。文件PROC15.cpp的内容如下://PROC15.cppinclude<iostream>using namespace std;unsigned short fun(unsigned short s);int main(){unsigned short a;cout<<"Enter a unsigned short integer number:";cin>>a;if(a<10)cout<<"Data error!";elsecout<<"The result: "<<fun(a)<<end1;return 0;}unsigned short fun(unsigned short s){//* * * * * *}

( 18 )下列各组类型声明符中,含义相同的一组是A ) unsigned long int 和 longB ) signed short int 和 shortC ) unsigned short 和 shortD ) short int 和 int

下列各组类型声明符中,含义相同的一组是A.unsigned long int和longB.signed short int和shortC.unsigned short和shortD.short int和int

以下选项中不属于c语言的类型的是( )。A.unsigned long intB.long shortC.unsigned intD.signed short int

下列各组类型声明符中,含义相同的一组是( )。A.unsignedlongint和longB.signedshort和shortC.unsignedshort和shortD.shortint和int

以下程序的输出结果是【 】。main(){ unsigned short a=65536; int b;printfC%d\n",b=a);}

Java语言中数值数据的类型能自动转换,按照从左到右的转换次序为()。A.byte→int→short→long→float→doubleB.byte→short→int→long→float→doubleC.byte→short→int→float→long→doubleD.short→byte→int→long→float→double

以下选项中不属于C语言的类型的是A.signed short intB.unsigned long intC.unslgned intD.long short

以下程序的输出结果是______。 main() { unsigned short a=65536;int b; printf("%d\n",b=a); }A.0B.1C.2D.3

以下选项中不属于C语言的类型的是 ______。A.signed short intB.unsigned long intC.unsigned intD.long short

自动类型转换是按优先关系从低级数据转换成高级数据,规定的优先次序是( )。A.byte, short, char→int→long→float→doubleB.float→int→long→byte, short, char→doubleC.int→long→float→double→byte, short, charD.double→int→float→long→byte, short, char

switch(c) 语句中c可以是int, long, char, float, unsigned int 类型。( )

有以下定义和语句,则sizeof(a.share)的值是( )。struct date{ unsigned int day;unsigned int mouth;unsigned int year;union{int share1;float share2;}share;}a;

6 写出下列程序在X86 上的运行结果。struct mybitfields{unsigned short a : 4;unsigned short b : 5;unsigned short c : 7;}testvoid main(void){int i;test.a=2;test.b=3;test.c=0;i=*((short *)test);printf("%d\n",i);}

下列程序的输出结果是______。 main() { unsigned short a=65536;int b; printf("%d\n",b:a); }A.0B.1C.2D.3

自动类型转换规定的优先次序是( )。A.short,byte,char→long→int→float→doubleB.short,byte,char→int→long―float→doubleC.byte,short,char→long→int→float→doubleD.byte,short,char→int→long→float→double

下列各组类型声明符中,含义相同的一组是( )。A.unsigned longint和longB.signed short和shortC.unsigned short和shortD.shortint和int

基本数据类型精度从低到高排列正确的是()A.byte short int float doubleB.byte short int double floatC. short byte int float doubleD. short byte int double float

假定编译器规定int和short类型长度分别为32位和16位,执行下列C语言语句: unsigned short a = 65534. unsigned int b ; b =a; 得到b的机器数为(41)。A.00007FFEHB.OOOOFFFEiHC.FFFF7FFEHD.FFFFFFFEH

以下代码中变量result的可能类型有哪些?byte b = 11;short s = 13;result = b * ++s; A.byte, short, int, long, float, doubleB.boolean, byte, short, char, int, long, float, doubleC.byte, short, char, int, long, float, doubleD.byte, short, charE.int, long, float, double

Java中整型包括()。A、int,byte,charB、int,short,long,byte,charC、int,short,long,charD、int,short,long,byte

下列哪种数据类型能表示的最大的值为65535?()A、charB、unsigned charC、shortD、unsigned short

下选项中不属于C语言的类型是()。A、signed short intB、unsigned long intC、unsigned intD、long short

在C程序中,设一表达式中包含有int,long,char和unsigned类型的变量和数据,这四种类型数据的转换规则是()。A、int→unsigned→long→charB、char→int→long→unsignedC、char→int→unsigned→longD、int→char→unsigned→long

public class Yikes {  public static void go(Long n) {System.out.println(”Long “);}  public static void go(Short n) {System.out.println(”Short “);}  public static void go(int n) {System.out.println(”int “);}  public static void main(String [] args) {  short y= 6;  long z= 7;  go(y);  go(z);  }  }  What is the result?() A、 int LongB、 Short LongC、 Compilation fails.D、 An exception is thrown at runtime.

单选题在C程序中,设一表达式中包含有int,long,char和unsigned类型的变量和数据,这四种类型数据的转换规则是()。Aint→unsigned→long→charBchar→int→long→unsignedCchar→int→unsigned→longDint→char→unsigned→long

单选题public class Yikes {  public static void go(Long n) {System.out.println(”Long “);}  public static void go(Short n) {System.out.println(”Short “);}  public static void go(int n) {System.out.println(”int “);}  public static void main(String [] args) {  short y= 6;  long z= 7;  go(y);  go(z);  }  }  What is the result?()A int LongB Short LongC Compilation fails.D An exception is thrown at runtime.