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 COPY ONE STRING IN OTHER STRING
#include stdio.h>
#include conio.h>
int copy(char a[],char b[]);
void main()
{
char a[100],b[100];
int i;
clrscr();
printf("ENTER THE FIRST STRING: ");
gets(a);
printf("ENTER THE SECOND STRING: ");
gets(b);
copy(a,b);
getch();
}
int copy(char a[],char b[])
for(i=0;a[i]!='\0';i++)
a[i]=b[i];
a[i]='\0';
printf("THE FIRST STRING IS COPY AND PUT INTO B= %s",a);
OUTPUT :
ENTER THE 1 STRING: KAMLESH
ENTER THE 2 STRING: MENGAR
THE FIRST IS COPY AND PUT INTO B = MENGAR
#an array that accept input and gives an output
2. a) Define a structure to store roll no, name and marks of a student. b) Using the structure of Q2. a), above write a ''C'' program to create a file "student.dat". There must be
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
Write a program that allows user to enter number of elements in an array. The program then allows user to enter the elements. Write a function called max that returns the position
#Byteland county is very famous for luminous jewels. Luminous jewels are used in making beautiful necklaces. A necklace consists of various luminous jewels of particular colour. Ne
Is it possible to have Virtual Constructor? If yes, how? If not, Why not possible?
Reverse a string - C ++ program: Write a program in c to reverse a string. int main() { Stack theStack; String reverse("reverse"); cout
Write a program to find the area under the curve y = f(x) between x = a and x = b, integrate y = f(x) between the limits of a and b. The area under a curve between two points can b
In this we will take a closer look at the logic behind Object Oriented Programming. Read through the pseudocode listed below and answer the following questions. Class Square
A virtual function permits derived classes to replace the implementation given by the base class. The compiler makes sure the replacement is always known as whenever the object in
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: +1-415-670-9521
Phone: +1-415-670-9521
Email: [email protected]
All rights reserved! Copyrights ©2019-2020 ExpertsMind IT Educational Pvt Ltd