I am looking help to understand c programming code in given site http://www.embeddedmarket.com/products/89V51RD2-Starter-Kit/Buzzer-Interfacing-8051-Microcontroller/ I am stuck in delay routine program
I understand this delay function in c
here variable name is i and it initialize in for loop
I don't understand below function why there is n and how does this function work in main program?
I understand this delay function in c
Code:
void Delay(int i)
{
for(i=0;i<100;i++)
}
I don't understand below function why there is n and how does this function work in main program?
Code:
void Delay(int n)
{
int j;
int i;
for(i=0;i<n;i++)
{
for(j=0;j<1000;j++)
{
}
}
}