Already have an account? Get multiple benefits of using own account!
Login in your account..!
Remember me
Don't have an account? Create your account in less than a minutes,
Forgot password? how can I recover my password now!
Enter right registered email to receive password!
A: void displayBits( unsigned value )
{
const int SHIFT = 8 * sizeof( unsigned ) - 1;
const unsigned MASK = 1<< SHIFT;
cout << setw(10 ) << value << " = ";
for ( unsigned i = 1; i <= SHIFT + 1; i++ )
cout << ( value & MASK ? '1' : '0' );
value <<= 1;
if ( i % 8 == 0 ) // output a space after bits cout << ' ';
}
cout << endl;
You may do the same by divide by 2, till the number is greator than 0. However you ought to use stack to print it in reverse order.
At a shop of marbles, packs of marbles are prepared. Packets are named A, B, C, D, E …….. All packets are kept in a VERTICAL SHELF in random order. Any numbers of packets with thes
C program to reverse the elements of array: #define rows 3 #define cols 3 void main() { int i=0,j=0; int arr[rows][cols];
C Program for REVERSE THE WORD IN STRING #include conio.h> #include stdio.h> #include string.h> void main() { char a[50],b[25][25],temp; i
A palindrome is a string that reads the same from both the ends. Given a string S convert it to a palindrome by doing character replacement. Your task is to convert S to palindrome
Aim: To implement a program to display a rectangle, circle and triangle. Code: class shape { public: vir
Problem: (a) (i) What is a structure? (ii) How does a structure differ from an array? (b) Declare a structure, called account, that will contain the following data me
Multiple inheritance with a common base (Hybrid Inheritance) Inheritance is an important and powerful feature of OOP. Only the imagination of the person concerned is the limit.
how to convert a general tree into binary tree with example
A: Use a member while you can and a friend when you need to. Sometimes friends are better syntactically (e.g., in class Fred, friend functions let the Fred parameter to be secon
write a program to accept ten numbers and display the total
Get guaranteed satisfaction & time on delivery in every assignment order you paid with us! We ensure premium quality solution document along with free turntin report!
whatsapp: +91-977-207-8620
Phone: +91-977-207-8620
Email: [email protected]
All rights reserved! Copyrights ©2019-2020 ExpertsMind IT Educational Pvt Ltd