找回密码
 立即注册
楼主: 小甲鱼

[课后作业] S1E6:数据类型 | 课后测试题及答案

 荐  火... [复制链接]
发表于 2020-3-28 14:01:43 | 显示全部楼层
零基础入门学习C语言封面
《零基础入门学习C语言》
小甲鱼 著
立即购买
0. long long int
1. _Bool
2. 不是是一个运算符
3. 8
4. _Bool
5. E int必须套括号, F 应该是sizeof
6. 一样大?
7. ?
小甲鱼最新课程 -> https://ilovefishc.com
回复 顶 踩

使用道具 举报

发表于 2020-3-28 14:48:44 | 显示全部楼层
0
小甲鱼最新课程 -> https://ilovefishc.com
回复

使用道具 举报

发表于 2020-3-28 15:11:58 | 显示全部楼层
1
小甲鱼最新课程 -> https://ilovefishc.com
回复

使用道具 举报

发表于 2020-3-28 15:14:08 | 显示全部楼层
1
小甲鱼最新课程 -> https://ilovefishc.com
回复

使用道具 举报

发表于 2020-3-28 17:37:25 | 显示全部楼层
1
小甲鱼最新课程 -> https://ilovefishc.com
回复

使用道具 举报

发表于 2020-3-28 19:52:19 | 显示全部楼层
做完了!
小甲鱼最新课程 -> https://ilovefishc.com
回复 顶 踩

使用道具 举报

发表于 2020-3-28 20:03:10 | 显示全部楼层
12
小甲鱼最新课程 -> https://ilovefishc.com
回复

使用道具 举报

发表于 2020-3-28 21:58:29 | 显示全部楼层
1.机器语言
2.编译
3.编译型语言是通过汇编再到机器语言再到CPU  解释型语言不是直接编译成机器码是编译成字节码到解释码
4.需要编译器
5.要经过解释器
6.查表
7。亲们趁敌人吃饭施法当进攻
QINMEN
CHEND
IRENC
HIFAN
SHIF
ADONG
JINGO
Ng


s1e4

0.变量和常量
1.变量由
a-z A-Z 0-9 下划线组组成
2.A E F G
3.关键字
4. 规则和约定
5. print 少了个f
6.main少了括号



0.
#include <stdio.h>

int main()
{
        int a;
        int b;
        b=3;
        a=b;
        b=b*2;
        printf ("a=%d\n",a);
        printf ("b=%d\n",b);
        return 0;
}


1.
#include<stdio.h>
int main()
{
        int r;
        float c;
        float s;
        r=5;
        c= 2*3.14*r;
        s=3.14*r*r;
        printf("半径为%d的圆,周长是%f,面积是%f",r,c,s);
        return 0;
}


2.
#include<stdio.h>

int main()
{
        printf ("打印五个字符:%c %c %c %c %c\n",70,105,115,104,76);
        printf ("前边 填充: \t%d\n",2015);
        printf ("前边用0填充:%.10d\n",2015);
        printf ("右对齐,保留2位\t%.2f\n"3.1416);
        printf ("左对齐,保留三位%.3f\n",3.1416);
        printf ("这俩还不懂怎么弄")

}


s1e5
0.标识符
1.不是
2.是
31个字节
4.有'F''i''s''s''h''C' \0
5有的
6.10


0.
#include <stdio.h>
#define NL “\n”

int main()

{
        printf ("Line1"NL);
        printf ("Line2"NL);
}


1.
#include<stdio.h>
#define PI 5
#define S(r) PI*r*r
#define C(R) 2*PI*r

int main()

{
        int r=5;
        printf ("半径为%d,的圆,面积是:%.2f,周长是:%.2f",r,S(r),C(r));
        return 0;
}

2.
#include <stdio.h>

#define fq 3.7
#deifne jl 7
#define xq 1.3
#define kxc 8
#define yc 2.4
#define yc1 9
#define hg 6.3
#define blb 0.5

int main()

{
        printf ("小明需要支付%.2f元",1*fq+0.5*kxc+0.5*yc1);
        printf ("小红需要支付%.2f元",1.5*xq+0.5*yc+2.5*hg);
        printf ("小甲鱼需要支付%.2f元",5*hg+10*blb);

        return 0;
}


s1e6
0. long long int
1.1字节
2.不是函数 是一个常量
3.8位
4.enum
5. E F
6.一样大
7.应为程序是按着你编写的走
0.
#include<stdio.h>
#include<math.c>

int main()

{
        int a,b;
        a=0;
        b=0;
        a=pow(1,2);
        b=b+a;
        a=pow(2,3);
        b=b+a;
        a=pow(3,4);
        b=b+a;
        a=pow(4,5);
        b=b+a;
        a=pow(5,6);
        b=b+a;

        printf ("b=%d\n",b)
}

1.

#include<stdio.h>
#include<math.h>

int mian()

{
        int sum;
        int temp;
        double weight;
        int i;

        for (i=0;i<64;i++)
        {
        temp=pow(1,i);
        sum=sum+temp;
        }
       
        weight = sum /25000;
        printf ("舍罕王应该给予达依尔%d麦粒子\n",sum);
        printf("如果每25000麦粒为1KG,那么应该给%.2f公顷麦子\n",weight);
       
        return 0;
}

小甲鱼最新课程 -> https://ilovefishc.com
回复 顶 踩

使用道具 举报

发表于 2020-3-29 09:44:36 | 显示全部楼层
1
小甲鱼最新课程 -> https://ilovefishc.com
回复

使用道具 举报

发表于 2020-3-29 10:30:00 | 显示全部楼层
朕
小甲鱼最新课程 -> https://ilovefishc.com
回复

使用道具 举报

发表于 2020-3-29 16:05:11 | 显示全部楼层
查看
小甲鱼最新课程 -> https://ilovefishc.com
回复

使用道具 举报

发表于 2020-3-29 19:11:25 | 显示全部楼层
你好
小甲鱼最新课程 -> https://ilovefishc.com
回复

使用道具 举报

发表于 2020-3-29 20:23:00 | 显示全部楼层
1
小甲鱼最新课程 -> https://ilovefishc.com
回复

使用道具 举报

发表于 2020-3-29 21:37:51 | 显示全部楼层
查看参考答案
小甲鱼最新课程 -> https://ilovefishc.com
回复 顶 踩

使用道具 举报

发表于 2020-3-29 21:42:14 | 显示全部楼层
1
小甲鱼最新课程 -> https://ilovefishc.com
回复

使用道具 举报

发表于 2020-3-29 21:54:36 | 显示全部楼层
小甲鱼最新课程 -> https://ilovefishc.com
回复

使用道具 举报

发表于 2020-3-29 22:30:36 | 显示全部楼层
123
小甲鱼最新课程 -> https://ilovefishc.com
回复

使用道具 举报

发表于 2020-3-30 09:13:25 | 显示全部楼层
加油
小甲鱼最新课程 -> https://ilovefishc.com
回复

使用道具 举报

发表于 2020-3-30 11:09:32 | 显示全部楼层
复习
小甲鱼最新课程 -> https://ilovefishc.com
回复

使用道具 举报

发表于 2020-3-30 13:01:27 | 显示全部楼层
看下答案
小甲鱼最新课程 -> https://ilovefishc.com
回复 顶 踩

使用道具 举报

您需要登录后才可以回帖 登录 | 立即注册

本版积分规则

Archiver|手机版|小黑屋|鱼C工作室 ( 粤ICP备18085999号-1 )

GMT+8, 2026-11-26 09:17

Powered by Discuz! X3.5

© 2001-2026 Discuz! Team.

快速回复 返回顶部 返回列表