1answer.
Ask question
Login Signup
Ask question
All categories
  • English
  • Mathematics
  • Social Studies
  • Business
  • History
  • Health
  • Geography
  • Biology
  • Physics
  • Chemistry
  • Computers and Technology
  • Arts
  • World Languages
  • Spanish
  • French
  • German
  • Advanced Placement (AP)
  • SAT
  • Medicine
  • Law
  • Engineering
oee [108]
3 years ago
6

With an example in each, describe the use of two basic functions which are known by the "string.h" header file.

Computers and Technology
1 answer:
olga nikolaevna [1]3 years ago
5 0

Answer:

strcmp(char * A, char * B);

strcat(char * A, char * B)

Explanation:

One of these basic functions is the function strcmp(char * A, char * B).

This functions compares if two strings are equal; If they are, it returns 0. If not, it returns 1;

So, an example:

char A[13] = "Buffalo Bills";

char B[13] = "Buffalo Bills";

if (strcmp(A,B) == 0)

printf("The strings are the same\n);

else

printf("The strings are not the same");

In this case, they are the same.

----------------------

If for example:

char B[13] = "Buffalo Billz"

It would fall in the else, A and B would not be the same strings.

--------------------------

Other function is the strcat(char * A, char * B);

This function takes two strings as an input, and concatenate them to the first.

For example:

char A[15] = "Buffalo";

char B[5] = "Bills";

strcat(A, B);

printf("%s\n", A);

The output is:

Buffalo Bills

You might be interested in
Help
photoshop1234 [79]

Answer:

206.25.

Explanation:

The equation to find out how much money you will make is prt, or principle • rate • time.

So you do 25 x 2.75% x 25, which is equal to 206.25.

4 0
3 years ago
Tsunami warning systems that utilize satellite technology to send an alarm have recently been developed and installed. these sys
guapka [62]
The answer that would best complete the statement above would be option A. Tsunami warning systems that utilize satellite technology to send an alarm have recently been developed and installed and these systems are one example of how <span>technology and communication networks can impact global issues. Hope this helps.</span>
4 0
3 years ago
What is the function of a text box in Microsoft word?​
Lisa [10]
A text box is an object you can add to your document that lets you put and type text anywhere in your file. Text boxes can be useful for drawing attention to specific text and can also be helpful when you need to move text around in your document.
4 0
3 years ago
Select the correct answer.
melamori03 [73]
B average because he want to estimate how many people were in the meeting
6 0
4 years ago
If a company doesn't distribute a computing use policy stating an employer's right to inspect employees' computers freely, inclu
tester [92]

Answer:

False

Explanation:

Without any police, a privacy can easily be compromised.

8 0
4 years ago
Other questions:
  • Write a program that estimates the approximate number of times the user’s heart has beat in his/her lifetime using an average he
    12·1 answer
  • Find Multiplication of Binary Numbers: 1100112 x 10012
    9·1 answer
  • kindly for the website of stedeo code.org if I login is the time of logging appears at my teacher ??is it registered ​
    14·1 answer
  • What should you do if a dialog box covers an area of the screen that you need to see?
    10·2 answers
  • . When a system isdelivered over time, with each delivery (release) adding tothe
    5·1 answer
  • What is the most efficient way to prevent the spelling checker from repeatedly flagging a correctly spelled name in all of your
    5·1 answer
  • You must write a pseudocode process called swapSort which should sort a list of numbers using an algorithm called swap sort.
    13·1 answer
  • What intangible benefits might an organization obtain from the development of an
    5·2 answers
  • Write an algorithm to calculate the average<br> value of array of integer elements
    13·1 answer
  • Beth is a software developer who is focused on identifying early-stage interface problems. Beth addresses the dimension of usabi
    11·1 answer
Add answer
Login
Not registered? Fast signup
Signup
Login Signup
Ask question!