Hi , I am giving a small C program ..this is to find the factorial of a given number. I would like to know how i could write the output value "fact"to a specifed memory location (For example like 0x40003456.
#include <LPC21xx.H> #include <stdio.h> void main (void) { int i,fact=1,value=6; for (i=1; i<=value; ++i) fact=fact*i; printf("The factorial of %d is %d\n",value,fact); }