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²
char P[100]; double X=533.8*22500; sprintf(P,"%f %u",X,(unsigned int)X); MessageBox(P,"SSS"); //12010500.000 12010499
write a c program that converts compass bearings into direction
construct a console programme for a bank ATM machine.
Define Enumeration in Computer Programming? Enumerated types enclose a list of constants that are able to be addressed in integer values. We can declare variables and types
A: The simplest instance of a smart pointer is auto_ptr that is included in the standard C++ library. Auto Pointer only takes care of Memory leak & does nothing regarding dangling
how to learn programming skills
Need assignment help What's the order that local objects are destructed?
How do you access the values within an array? - Arrays comprise a number of elements, which depends on the size you assigned it during variable declaration. - Every element
Define the Self-Referential Structures? It is occasionally desirable to include within a structure one member that is a pointer to the parent structure type. Generally in terms
How can one handle a destructor that fails?
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