Menu

Custom Search

Microcontroller Program

(a)#include
void main(void)
{
p1='h';
p1='e';
p1='l';
p1='l';
p1='o';
}
(b)#include
void main (void)
{
unsigned char mydata[]="hello";
unsigned char z;
for (z=0;z<=5;z++) p1=mydata[z]; } (c)#include
void main (void)
{
//notice keyword code
code unsigned charz;
for (z=0;z<=5;z++)
p1=mydaya{z};
}

No comments:

Post a Comment