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

📄 no_recur.c

📁 C语言常用的程序900例
💻 C
字号:
#include <stdio.h>
#include <time.h>

int string_length(const char *str)
 {
   int length = 0;
   
   while (*str++)
     length++;

   return(length);
 }

void main(void)
 {
   long int counter;

   time_t start_time, end_time;

   time(&start_time);

   for (counter = 0; counter < 100000L; counter++)
     string_length("Jamsa's 1001 C/C++ Tips");
     
   time(&end_time);

   printf("Processing time %d\n", end_time - start_time);
 }

⌨️ 快捷键说明

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