当前位置:网站首页>My second blog - C language
My second blog - C language
2022-07-28 19:31:00 【Jarvis with stars and moon】
I'm glad today , That is to say 10 month 22 Write my blog on the th —— About C linguistics
My programming goals , The fastest winter vacation from the first semester of freshman to the next semester C The foundation of language is solid , Basically finished , The foundation is not solid , The earth trembled and the mountains swayed ; Learning to program , I think we should rely more on ourselves to fight , More in b Stand and watch online classes , It mainly depends on self-taught programming and professional courses in school ; I hope that after four years of study in University , Enter Tencent , Or bytes and so on IT company
//C In language hex For hexadecimal ,oct For octal ,dec For decimal ,bin For binary
// Calculate the length of several common types of bytes
int main()
{
int a, b, c, d;
a = sizeof(short);
b = sizeof(int);
c = sizeof(long);
d = sizeof(long long);
printf("%hd\n", a);
printf("%d\n", b);
printf("%d\n", c);
printf("%d\n", d);
return 0;
}
Common keyword classification
aunt break case char const continue default do double else enum
extern float for goto if int long register return short signed
sizeof static struct switch typedef union unsigned void volatile while
#include<stdio.h>// The header file
int main()
{ int a = 0, b = 0;// Variable initialization
printf(")
return 0;
}
#define _CRT_SECURE_NO_WARNINGS 1
#include <stdio.h>
//int main()
//{
// printf("%d\n", printf("Hello world!\n") - 1);
//
// return 0;
//}
//static
//void test()
//{
// static int a = 1;
// a++;
// printf("%d ", a);
//}
//int main()
//{
// int i = 0;
//
// while (i < 10)
// {
// test();
// i++;
// }
//
// return 0;
//}
//extern It's a keyword , Is an external symbol for reputation
// extern int g_val = 2021;
//int main()
//{
// printf("%d", g_val);
//
// return 0;
//}
// If not extern Go to the external symbol that you define
// be main Function cannot call this external symbol
// A global variable can be used in other files throughout the project , Because global variables have external connection properties
// When a global variable is static When decorating , The external link attribute of this variable becomes the internal link attribute
// Make this global variable can only be used inside its own source file , Other files can no longer be used
int Add(int x, int y)
{
return x + y;
}
int main()
{
int a, b;
scanf("%d%d", &a, &b);
int ret = Add(a, b);
printf("%d", ret);
return 0;
}
边栏推荐
- Cvpr19 - adjust reference dry goods bag of tricks for image classification with revolutionary neural network
- 串口接收应用——环形缓冲buffer
- 这种动态规划你见过吗——状态机动态规划之股票问题(下)
- idea properties文件显示\u不显示中文的解决
- CVPR21-无监督异常检测《CutPaste:Self-Supervised Learning for Anomaly Detection and Localization》
- JS preventDefault() 键盘输入限制 onmousewheel stopPropagation停止事件传播
- 微信公众号授权登录后报redirect_uri参数错误的问题
- Application of time series database in museum environment detection
- 调用整数或字符数组函数里的参数应该传入啥
- Scrapy Spider源码分析
猜你喜欢

可转债概念表 x Notion 给你方便快捷的体验!

Nips18 (AD) - unsupervised anomaly detection using geometric transformations using geometric augmentation

【已解决】AC86U ML改版固件虚拟内存创建失败,提示USB磁盘读写速度不满足要求

App自动化测试是怎么实现H5测试的

CVPR21-无监督异常检测《CutPaste:Self-Supervised Learning for Anomaly Detection and Localization》

Adobe XD web design tutorial

NDK series (5): from introduction to practice, JNI explodes the liver and explains everything in detail!

VAE: understanding and implementation of variational self encoder

Convertible bond concept table x notation gives you a convenient and fast experience!

Rust Getting Started Guide (crite Management)
随机推荐
Fantasy 5 (ue5) game engine complete course 2022
剑指 Offer II 109. 开密码锁
使用百度EasyDL实现明厨亮灶厨师帽识别
R语言与数据分析实战11-数据的删除
Rust 入门指南(crate 管理)
VAE:变分自编码器的理解与实现
企业级分布式爬虫框架入门
Transformer for anomaly detection - instra "painting transformer for anomaly detection"
这种动态规划你见过吗——状态机动态规划之股票问题(下)
Srs4.0 installation steps
文章翻译软件-批量免费翻译软件支持各大翻译接口
Using Baidu easydl to realize chef hat recognition of bright kitchen and stove
ES6 new - arrow function
source insight项目导入和使用教程
SaltStack之salt-ssh
C language cycle sentence strengthening exercises
New this prototype precompiled exercise
[solved] ac86u ml revision firmware virtual memory creation failed, prompting that the USB disk reading and writing speed does not meet the requirements
WPF implements MessageBox message prompt box with mask
读了三年论文,我今天才学会阅读摘要