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!
C Program for FUNCTION OF MERGE
#include conio.h>
#include stdio.h>
char cot(char a[],char b[]);
void main()
{
char a[50],b[50];
clrscr();
printf("ENTER THE FIRST STRING: ");
gets(a);
printf("ENTER THE SECOND STRING: ");
gets(b);
cot(a,b);
getch();
}
char cot(char a[],char b[])
char p[50]; int i,j;
for(i=0;a[i]!='\0';i++)
p[i]=a[i];
p[i]=' ';
for(j=0;b[j]!='\0';j++)
p[i+j+1]=b[j];
p[i+j+1]='\0';
printf("%s",p);
OUTPUT :
ENTER THE 1 STRING: KAMLESH
ENTER THE 2 STRING: MENGAR
KAMLESH MENGAR
Using the Constructor There are basically three ways of creating and initializing the object. The first way to call the constructor is explicitly as :
When I develop a destructor, do I require to explicitly call the destructors for my member objects?
Observe that our model of evaluation allows for combinations whose operators are compound expressions. (a) Use this observation to describe the behavior of the following procedu
What is copy constructor? describe the concept of copy constructor.
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
Stage One Define the specification of the program Add two nxm size matrices Stage Two Divide the program up into separate modules Input Matrix Ad
Define Generic Bitwise Operations? Bitwise operators only work on an incomplete number of types int and char. It turns out there's above one kind of int. In particular there's
We can combine more than one variable on the same line i.e. float number1,number2,number3; etc Sometimes we want to mix the variable types used on the same line, this could
Aim: To implement a program to allocate memory dynamically for 2 dimensional array (accept and print matrix) using pointers. Code: #include #inc
algorithm to find out all the factors of given positive integers
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