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: Write a program of multipication using inline function
class Multiply
{
int x,y;
public:
void getdata();
inline calculate(int a,int b)
return(a*b);
}
void display();
};
void Multiply::getdata()
cout<<"Enter the two numbers"< cin>>x>>y; } void Multiply::display() { cout<<"Multiplication of "< cout< } int main() { clrscr(); Multiply m; m.getdata(); m.display(); getch(); } Output: Enter the two numbers 6 5 Multiplication of 6 and 5=30
cin>>x>>y;
void Multiply::display()
cout<<"Multiplication of "< cout< } int main() { clrscr(); Multiply m; m.getdata(); m.display(); getch(); } Output: Enter the two numbers 6 5 Multiplication of 6 and 5=30
cout< } int main() { clrscr(); Multiply m; m.getdata(); m.display(); getch(); } Output: Enter the two numbers 6 5 Multiplication of 6 and 5=30
int main()
clrscr();
Multiply m;
m.getdata();
m.display();
getch();
Output:
Enter the two numbers
6 5
Multiplication of 6 and 5=30
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
C Program for FUNCTION OF FIND THE FACTORIAL float factorial(float); void main() { float i=0,c=0; clrscr(); printf("ENTER THE DIGI
Pointers are just numbers, representing addresses in memory. You can add to and subtract from pointers, for instance. It is pretty easy to make mistakes with pointer math, however,
Q: In p = new Fred(), does the Fred memory "leak" if Fred constructor throws an exception? A: No. If an exception take place during the Fred constructor of p = new F
Write a program that performs character processing on 10 characters read in from a file, and writes the results to output files. Do NOT use loops or arrays to solve this problem. N
Explain the Command Line Parameters? The Command line arguments are parameters supplied to a program from the operating system. These arguments are parameters accepted to main
A: no, can't. The names of, precedence of, associativity of, and arity of operators is fixed through the language. In C++, there is no operator** so you cannot create one for a
A: By keeping along with the C++ tradition of "there's more than one method to do that" (translation: "give programmers options & tradeoffs so they can choose what's best for them
#questi An array of n numbers is given, where n is an even number. The maximum as well as minimum of these given numbers need to be determined. Which of the following is true about
A Padovan string P(n) for a natural number n is defined as: P(0) = ‘X’ P(1) = ‘Y’ P(2) = ‘Z’ P(n) = P(n-2) + P(n-3), n>2 where + denotes string concatenation. For a string of t
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