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!
Aim: To implement program to calculate area of cube using inline function.
Code:
inline void area_cube(float side)
{
float area;
area=6*side*side;
cout<<"\nArea of cube with side "< } void main() { int side; clrscr(); cout<<"Program to calculate area of Cube:"; cout<<"\n Enter side of cube:"; cin>>side; area_cube(side); getch(); } Output: Program to calculate area of Cube: Enter side of cube:7 Area of cube with side 7 cm is 294 cm²
}
void main()
int side;
clrscr();
cout<<"Program to calculate area of Cube:";
cout<<"\n Enter side of cube:";
cin>>side;
area_cube(side);
getch();
Output:
Program to calculate area of Cube:
Enter side of cube:7
Area of cube with side 7 cm is 294 cm²
Define pure virtual function or abstract class?
#Byteland county is very famous for luminous jewels. Luminous jewels are used in making beautiful necklaces. A necklace consists of various luminous jewels of particular colour. Ne
Program is to define a class as employee: Write a program to define a class as employee and collect information about them by using classes and object class employee {
Define One's Complement Operator? The one's complement operator, occasionally called the "bitwise NOT" or "bitwise complement" operator produces the bitwise one's complement of
How to specify different memory sections for a variable using #Pragma?
decodethecode
In general, Roman numerals can be converted mathematically by simply assigning a numerical value to each letter, according to the chart below, and calculating a total: M=1000 | D=5
Smugglers are becoming very smart day by day. Now they have developed a new technique of sending their messages from one smuggler to another. In their new technology, they are send
Implementation of the Definition class: void Definition::put_word(char *s) { word = new char[strlen(s)+1]; strcpy(word,s); nmeanings = 0; } voi
store the name of the political parties and the corresponding votes in two lists of equal length. access the lists is provided by two methods, each of which creates an interator th
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