All pastes #434557 Raw Edit

Miscellany

public text v1 · immutable
·published 2007-04-11 13:42 UTC
rendered paste body
#include <stdio.h>
#include <math.h>

int main(void)
{
	int i=1, red=3, green=5;
	float result=0;

	// this line causes GCC to spit an error
	result = pow(red,(green-i));

	// this line works fine on GCC
	result = pow(red,(green-1));

	printf("%f", result);

	return 0;
}