User Id:
Password:
Forgot User ID or Password?
     
 
Facebook Twitter Linked In Stumble Upon Digg In
Articles
Database(11)
Desktop Development(3)
Development Lifecycle(2)
Dot Net Nuke(1)
Enterprise Systems(1)
Frameworks & Libraries(0)
General Programming(25)
General Reading(6)
Graphics / Design(10)
Languages(2)
Mentor Resources(0)
Mobile Development(3)
Multimedia(0)
Research Papers(1)
Social Media(1)
Software Engineering(3)
Third Party Products(0)
Web Development(11)
Add a Article
 
Articles

Octal to Binary Conversion in C++

// Program to convert an octal number into binary number
#include
#include
int arr[100],ind=0,ctr=3;
void main()
{
void pr(int);
int r,octno;
cout<<"Enter octal no:";cin>>octno;

while(octno!=0)
{
r=octno%10;
octno=octno/10;
pr(r);
}
for(int i=ind-1;i>=0;i--)
cout<}

void pr(int dec)
{

while(dec!=0)
{
arr[ind++]=dec%2;
dec=dec/2;
}
while(ind arr[ind++]=0;
ctr=ctr+3;
}

Average: 5.0000, Total Ratings: 1

 



FAQ Messages  newPost a Message 
Generalassingment...makind this asinment solution...urrgently..sarfraz11309 Nov, 2010 11:59:05

 
Last Updated August 21, 2018 | Advertise | Privacy Policy
Copyright © QAU Programmers, 1999-2018 All Rights Reserved. Terms of Use