⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 const.c

📁 C源码集
💻 C
字号:
#include <stdio.h>int main (void){	double f = 5000000000.0;	double g = 5000000000;	const int DaysinMay = 31;	/* don't have to mess with L, e, ., etc. if use const */	/* f prints out OK but g gives overflow value as integer	constant has been created and is over the max int size */	printf("f=%f \n", f);	printf("g=%f \n", g);	g = 33.3;	printf("g=%f \n", g);	// can change the value of a literal constant. It is an lvalue// DaysInMay = 30;//	printf("Days in May = %d \n", DaysInMay);	// but can't change the value of a named constant. It is an rvalue	return 0;}

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -