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²
explain me for loop
The #undef Directive This directive undefines a previously explained macro. For, example the following will give an error since PI is undefined. #define PI 3
A string S is said to be "Super ASCII", if it contains the character frequency equal to their ascii values. String will contain only lower case alphabets (''a''-''z'') and the asci
- Create a program that uses at least two functions that will be called from your main. This program is a number game program that asks for parts of your phone and after manipulati
limitation of linear array
Write a simple program in C++ to investigate the safety of its enumeration types. Include at least 10 different operations on enumeration types that are incorrect/unsafe things to
find area uder the curve y=f(x) between x=a and x=b
Question : (a) What is a structure? Provide a simple example of your own to illustrate this feature. (b) How does a structure differ from an array? (c) Describe a structu
Q: But MFC appear to encourage the employ of catch-by-pointer; should I do the similar? A: Depends. If you're utilizing MFC and catching one of their exceptions, by all means, d
how objects are initialized dynamically?
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