5. Three types of embedded system’s are:
Small scale embedded system
- digital watches
Medium scale embedded system
- Ipod’s
Large scale embedded system
- washing machine
8. The C programming language was designed by
Dennis Ritchie at Bell Laboratories in the early
1970s
Influenced by
◦ ALGOL 60 (1960),
◦ CPL (Cambridge, 1963),
◦ BCPL (Martin Richard, 1967),
◦ B (Ken Thompson, 1970)
Traditionally used for systems programming,
though this may be changing in favor of C++
9. SOFTWARE
Two types of software's are used
1. Application software
2. Program software
the program s/w will create application
wise program and create normal program
also. Like c, c++,java,and visual basics.
11. The Preprocessor
◦ #define : defines a macro
◦ #undef : removes a macro definition
◦ #include : insert text from file
◦ #if : conditional based on value of expression
◦ #ifdef : conditional based on whether macro
defined
◦ #ifndef : conditional based on whether macro
is not defined
◦ #else : alternative
◦ #elif : conditional alternative
17. INPUT AND OUTPUT SYSTEM
Unformatted formatted
Input output scanf and printf
Getchar() putchar()
Getch() putch()
Getc() putc()
Gets() puts()
18. Examples
Scanf syntax:
(“control string”,&v1,&v2);
example
scanf(“%d”, &a &b);
Printf syntax:
(“control string”,&v1,&v2”);
example
printf(“result %d”,a);
19. SPECIFIERS
%c single character
%d decimal integer
%s string
%f,%e float value
%ld long integer
%o octal number
%x hexa decimal number
%h short integer