小编Rob*_*lls的帖子

Mac OS上的`cc -std = c99`和`c99`有什么区别?

鉴于以下计划:

/*  Find the sum of all the multiples of 3 or 5 below 1000. */

#include <stdio.h>

unsigned long int method_one(const unsigned long int n);

int
main(int argc, char *argv[])
{
        unsigned long int sum = method_one(1000000000);
        if (sum != 0) {
                printf("Sum: %lu\n", sum);
        } else {
                printf("Error: Unsigned Integer Wrapping.\n");
        }

        return 0;
}

unsigned long int
method_one(const unsigned long int n)
{
        unsigned long int i;
        unsigned long int sum = 0;
        for (i=1; i!=n; ++i) …
Run Code Online (Sandbox Code Playgroud)

c compiler-construction xcode c99

5
推荐指数
2
解决办法
3599
查看次数

标签 统计

c ×1

c99 ×1

compiler-construction ×1

xcode ×1