All pastes #1749112 Raw Edit

C

public c v1 · immutable
#1749112 ·published 2010-01-13 02:18 UTC
rendered paste body
#include <stdio.h>#include <time.h>#include <limits.h>int main(){	time_t start,end;	int something;	int i;	long long a,b;	time(&start);	for(i=0;i<INT_MAX;i++){		if(a==b){			something = 1;		}else {			something = 0;		}	}		time(&end);	printf("8b int took - %lus\n",end-start);	char a_char[8],b_char[8];	time(&start);	for(i=0;i<INT_MAX;i++){		if(strcmp(a_char,b_char)>0){			something = 1;		}else {			something = 0;		}	}	time(&end);	printf("8b char took - %lus\n",end-start);	return 0;}