Skip to main content

Posts

Creating and Displaying a Linked List

  Linked List Creating and Displaying a Linked List Program #include<stdio.h> #include<stdlib.h> struct node { int data; struct node *next; }; void create_displayLinkedList(int n); int main() { int n; printf("\n To create and display Linked List:\n"); printf("Number of nodes:"); scanf("%d",&n); create_displayLinkedList(n); return 0; } void create_displayLinkedList(int n) { struct node *head,*newnode,*temp; head=NULL; int count=0; while(n!=0) { newnode=(struct node*)malloc(sizeof(struct node)); printf("Enter Data:\n"); scanf("%d",&newnode->data); newnode->next=0; if(head==0) { head=temp=newnode; } else { temp->next=newnode; temp=newnode; } n--; } printf("***************\n"); temp=head; while(temp!=0) { printf("%d->",temp->data); temp=temp->next; count++; } printf("\n Count=%d...

Embedded Systems

  Introduction to Embedded Systems WHAT IS AN EMBEDDED SYSTEM? An embedded system is an electronic/electro-mechanical system designed to perform a specific function and is a combination of both hardware and firmware(software). Difference between embedded and general purpose computing system Embedded System A system which is a combination of special purpose hardware and embedded OS for executing a specific set of applications. May or may not contain an operating system for functioning. The firmware of the embedded system is pre-programmed and it is non alterable by the end-user (There may be exceptions for systems supporting OS kernel image flashing through special hardware settings). Application-specific requirements (like performance, power requirements, memory usage, etc.) are the key deciding factors. Highly tailored to take advantage of the power saving modes supported by the hardware and the operating system. For certain category of embedded systems like mission critical syste...