当前位置:网站首页>The third job analysis
The third job analysis
2022-04-22 19:10:00 【Learn a little every day】
The third assignment
End of directory
One 、
About C The correct language keyword is :( )
A. Keywords can be created by yourself
B. Keywords cannot be created by themselves
C. Keyword can be used as variable name
D.typedef Not a keyword
B
I've talked about it before , Keywords cannot be created by yourself , It is c Language itself has , It's built in , Nor can it be used as a variable name , There will be conflict
typedef It's keywords , It is the function of type renaming , Rename some complex types with a simple name
Two 、
Use in switch The keyword in the language does not contain which ?( )
A.continue
B.break
C.default
D.case
A
switchIs used to select , That is, branch statements ,breakIs to jump out of the choice ,defaultIt means that the input number is not within the optional range , Will jump to its corresponding place and execute its selection ,case Is to select every choice in the statement ,case 1:Namelychoice 1,case 2:Namelychoice 2, You can rearrange the order .
however
continueIt's used in the loop , The effect is to end this cycle , The following code is no longer executed , Skip to the next cycle
3、 ... and 、
Which of the following is not a keyword :( )
A.int
B.struct
C.define
D.continue
C
In the keywords learned before , Only define Not a keyword
But we often use it .
For example, reference header file ,#define Defined identifier constant ,#define Defined macros, etc .
It is a preprocessing instruction , Instructions designed for preprocessing , Let's talk about it later
Four 、
BC18- Calculating division with remainder
Calculating division with remainder
The result of Xiao Ben :
#include<stdio.h>
int main()
{
int a=0;
int b=0;
int c=0;
int d=0;
scanf("%d %d",&a,&b);
c=a/b;
d=a%d;
printf("%d %d",c,d);
return 0;
}
5、 ... and 、
BC13-ASCII code
ASCII code
The result of Xiao Ben :
#include<stdio.h>
int main()
{
int a[12]={
73, 32, 99, 97, 110, 32, 100, 111, 32, 105, 116 , 33};
int i=0;
while (i<12)
{
printf("%c",a[i]);
i++;
}
return 0;
}
6、 ... and 、
BC14- Date of birth input output
Date of birth input output
The result of Xiao Ben :
#include<stdio.h>
int main()
{
int year = 0;
int mouth = 0;
int date = 0;
// Input
scanf("%4d%02d%02d",&year,&mouth,&date);
// Output
printf("year=%4d\nmonth=%02d\ndate=%02d\n",year,mouth,date);
return 0;
}
7、 ... and 、
BC11- Input and output of students' basic information
Input and output of students' basic information
The result of Xiao Ben :
#include<stdio.h>
int main()
{
int a = 0;
float b = 0.0;
float c = 0.0;
float d = 0.0;
scanf("%d;%f,%f,%f", &a, &b, &c, &d);
printf("The each subject score of No. %d is %.2f, %.2f, %.2f.",a,b,c,d);
return 0;
}
8、 ... and 、
BC9-printf The return value of the function
printf The return value of the function
The result of Xiao Ben :
#include <stdio.h>
int main()
{
// Use ret preservation printf The return value of
int ret = printf("Hello world!");
printf("\n");
printf("%d\n", ret);
return 0;
}
| The third job parsing is over |
版权声明
本文为[Learn a little every day]所创,转载请带上原文链接,感谢
https://yzsam.com/2022/04/202204221904422683.html
边栏推荐
- MacOS M1 使用 Homebrew 安装 Mysql
- Why can't async be used directly in useeffect
- LeetCode 41. 缺失的第一个正数
- Daily AI frontier term: Green AI
- 【Appium踩坑】Could not proxy command to the remote server. Original error: timeout of 240000ms exceeded
- P1794 solving many fish problem
- Leetcode prefix and - question set
- Type of Flink window
- ArrayList学习笔记
- Simple implementation of linear regression
猜你喜欢

【面试普通人VS高手系列】请说一下网络四元组

10-Streaming Query

webrtc+turn+peerconnection_server测延时

Introduction to feign, a microservice invocation component

C#与 Halcon 联合编程

Nat. Commun. | Neural coding framework for learning generation model

11-Aggregating Streams

LeetCode_343 整数拆分

What happens when you run the NPM install command?

高速野蛮生长的单片机嵌入式行业,各个岗位的需求也随之增大
随机推荐
Error c4996 'fopen': this function or variable may be unsafe Consider using fopen_ s instead. To disabl
11-Aggregating Streams
Leetcode prefix and - question set
@RequestBody修饰的对象属性大小写映射问题
Introduction to high performance key value database redis
【自我救赎--牛客网Top101 4天刷题计划】 第一天 热身运动
[appium stepping on the pit] could not proxy command to the remote server Original error: timeout of 240000ms exceeded
防火门可以根据EN 1634-1 标准测试吗?
漂亮舒服的KN95口罩,防护能力也很强
Introduction notes to PHP zero Foundation (12): array
项目实训- 基于unity的2D多人乱斗闯关游戏设计与开发(小地图修改完善)
P1794 求解好多鱼问题
Huawei cloud media Zha Yong: Huawei cloud's technical practice in the field of video AI transcoding
yes. Net future
webrtc+turn+peerconnection_server测延时
SQL command distinct
The beautiful and comfortable kn95 mask has strong protection ability
静态分派和动态分派
如何写一篇五彩斑斓的博客.append(可爱)
[appium stepping pit] failed to capture a screenshot Does the current view have ‘secure‘ flag set?