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

📄 arraystatic.c

📁 You will write a program for calculating person s Body Mass Index (BMI). The following formula is us
💻 C
字号:
#include "array.h"// Default array size (if not defined like gcc -DARRAY_SIZE=100)#ifndef ARRAY_SIZE#define ARRAY_SIZE 20#endifint main(void) {	// Create a static array	int array[ARRAY_SIZE];	// Fill it with numbers	for (size_t i = 0; i < ARRAY_SIZE; ++i) array[i] = i + 1;	// Print the contents	arrayPrintN(array, ARRAY_SIZE);	// Add an end marker in the middle and print again	array[ARRAY_SIZE / 2] = -1;	arrayPrintUntil(array, -1);	// The block ends, array goes out of scope and is automatically freed}

⌨️ 快捷键说明

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