We are running a survey to help us improve the experience for all of our members. If you see the survey appear, please take the time to tell us about your experience if you can.
Hi all, When i try to run the program below ,i got the two warnings below. I didnt add stratup.s in my project. I am geting the error whenever i include the line *(int *)0x40003456L = fact; I would like to know the cause of the problem and the way to get rid of it. looking for ur help. t.senthil
#include <LPC21xx.H> #include <stdio.h> void main (void) { int i,fact,j=1,value=6; for (i=1; i<=value; ++i) j=j*i; printf("The factorial of %d is %d\n",value,j); fact=j; *(int *)0x40003456L = fact; }
Hi Jon Thanks for your inforation.It works after changing the memory location.....Thanks a lot... t.senthil