[email protected] webmail now available. Want one? Go here.
Windows getting boring or just want to try something Open Source for your next Desktop Environment?! Go Zorin OS.
Paste
Pasted as C by faster_slower ( 8 years ago )
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
void fn1(void)
{
int i = 64;
while (i >= 0) i--;
}
void fn2(void)
{
unsigned int value = 1999999999, i;
while(value)
{
i = value % 10;
value /= 10;
}
}
int main(void)
{
int j;
printf("test 1\n");
for(j = 0; j < 20000000; j++)
{
fn1();
}
printf("test 2\n");
for(j = 0; j < 20000000; j++)
{
fn2();
}
return 0;
}
Revise this Paste