Hello everyone
I need help to understand how does below code work. whole code I tested. it show the message "ELECTRONICS"; on LCD. but I am not getting idea . how does below part of program work
I need help to understand how does below code work. whole code I tested. it show the message "ELECTRONICS"; on LCD. but I am not getting idea . how does below part of program work
Code:
void main()
{
unsigned char a[15]="ELECTRONICS"; //string of 14 characters with a null terminator.
int l=0; // integer data type with 0 variable value
lcd_init();
while(a[l] != '\0') // I don't understand this line
{
lcd_data(a[l]); // whats the use of this line
l++; // increment
msdelay(50); // this is delay
}
}