This discussion has been locked.
You can no longer post new replies to this discussion. If you have a question you can start a new discussion

Writing to a specified memory location

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);


}

looking for ur help.

with rds,
t.senthil

0