This is a program to convert binary to decimal
/* author- WYES KARNY */
#include<stdio.h>
int main()
{
int a,rem,des=0,i=1;
printf("Enter a binary number ");
scanf("%d",&a);
while(1)
{
rem=a%10;
a=a/10;
des+=rem*i;
i=i*2;
if(a==0)
break;
}
printf("\nThe equevalent desimal value is %d \n",des);
return 0;
}
And for the Decimal to binary
#include<stdio.h>int main(){ int a,i,shift,bit; scanf("%d",&a); for(i=0;i<16;i++)...
Friday, 10 May 2013

Linked List is collection of data which is linked together in a specific way.
It is very efficient for computer memory. It consumes memory usage and save memory spaces.
It works as Dynamic Allocation System (DMA).
First we have to know -
What is Linked List?
Why we use Linked List?
How do we implement Linked list?
We...
Subscribe to:
Posts (Atom)