subject

Art 1: Write a function about string copy, the strcpy prototype "char* strcpy (char* strDest, const char* strSrc);". Here strDest is destination string, strSrc is source string. 1) Write the function strcpy, don't call C string library. 2) Here strcpy can copy strSrc to strDest, but why we use char* as the return value of strcpy?

ansver
Answers: 1

Another question on Computers and Technology

question
Computers and Technology, 22.06.2019 02:30
If you turn on the lock alpha button , what happens
Answers: 1
question
Computers and Technology, 22.06.2019 22:50
Assume the existence of a bankaccount class. define a derived class, savingsaccount that contains two instance variables: the first a double, named interestrate, and the second an integer named interesttype. the value of the interesttype variable can be 1 for simple interest and 2 for compound interest. there is also a constructor that accepts two parameters: a double that is used to initialize the interestrate variable, and a string that you may assume will contain either "simple", or "compound", and which should be used to initialize the interesttype variable appropriately. there should also be a pair of functions getinterestrate and getinteresttype that return the values of the corresponding data members (as double and int respectively).
Answers: 2
question
Computers and Technology, 23.06.2019 19:00
Acompany is hiring professionals for web designing. the firm is small with few resources. they want employees who possess problem-solving skills and can independently carry out responsibilities. which kind of employee should they select?
Answers: 2
question
Computers and Technology, 24.06.2019 12:30
Do you think media is stereotype ? and why?
Answers: 1
You know the right answer?
Art 1: Write a function about string copy, the strcpy prototype "char* strcpy (char* strDest, const...
Questions
question
World Languages, 27.09.2019 11:30
question
Mathematics, 27.09.2019 11:30
question
Biology, 27.09.2019 11:30
Questions on the website: 13722363