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!
Program is to swap the two values which are enter by user:
Program is to swap the two values which are enter by user through the function with values changed using pointers
void swap(int *p,int *q);
void main()
{
clrscr();
int a,b;
cout<<" enter the number ";
cin>>a;
cin>>b;
swap(&a,&b);
cout<<" the numbers after the value being changed "<<"\n"< } void swap(int *p,int *q) { int r; r=*p; *p=*q; *q=r; }
}
void swap(int *p,int *q)
int r;
r=*p;
*p=*q;
*q=r;
Pointer to function: int mul(int a, int b, int c) { return a*b*c; } void main() { int (*function_pointer)(int, int, int); function_pointer = &mul;
Problems With Multiple Inheritance The following example presents a problem with multiple inheritance. class Aclass { public : void put()
tel prgm for tis
Input function
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
Problem : (a) Stacks can be implemented using arrays. Write down the following C or C++ function to (i) create a stack (ii) add an element to a stack (push). (b) Expl
ambiguity in multiple inheritance
I am doing project on home stay which includes features like add homestay,search,book,delete homestay,
What is the difference among a copy constructor and an overloaded assignment operator? Ans) A copy constructor constructs a latest object by using the content of the argument
Use of random function: int main(void) { int i,j; for(j=0;j { // randomize(); for(i=0;i printf("%d\n", ran
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