题目内容

#include#define LED_PORT P2void delay_ms(unsigned int z){unsigned int x,y;for(x=0;x

A. 对
B. 错

查看答案
更多问题

unsigned char table[]={0x3f,0x06,0x5b,0x4f,0x66,0x6d,0x7d,0x07,0x7f,0x6f};void main(){char i=0;for(i=0;i<10;i++){LED_PORT=table[i];delay_ms(1000);}}上述程序可以显示0-9.()

A. 对
B. 错

#includevoid main(){int a=3,b=5;int temp;printf("交换前a=%d,b=%d\n",a,b);temp=a;a=b;b=temp;printf("交换后a=%d,b=%d\n",a,b);}上述程序是错误的。()

A. 对
B. 错

数码管分为()与()。

unsigned char table[]={0x3f,0x06,0x5b,0x4f,0x66,0x6d,0x7d,0x07,0x7f,0x6f};void main(){char i=0;unsigned char *p=table;for(i=0;i<10;i++){LED_PORT=();delay_ms(1000);}}

答案查题题库