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
1. PGP encryption can be performed from the command line as well. What is the PGP command line syntax to encrypt the my-message.
bekas [8.4K]

Answer:

1. From the command prompt, type:

pgp --encrypt "my-message.txt" --recipient "Sean" --output "secret-message.txt.gpg"

2. Press Enter.

Explanation:

From the command line, the above command is entered and Enter is pressed.

The command start with pgp, then it has different options:

--encrypt: this specifies the input file to be encrypted

--recipient: this specifies the specific user to which the file is been encrypted

--output: this specifies the name to which the output (encrypted file) is saved.

8 0
3 years ago
How do you make computers or microwaves?
solniwko [45]

Answer:

Using the correct parts.

Explanation:

A computer requires a bunch of parts to be put together, it can be really fun to do. What I recommend doing, if you are wanting to create your own computer is to search online what are the necessary parts and then watch a "creating YOUR first PC" video :)

Hope this helped,

Zaxoosh.

8 0
3 years ago
What is the command in the menu bar to change text to title case?
asambeis [7]
It is called change case
5 0
3 years ago
How does a main program recieve info from a function in c++?
Mashcka [7]
Main() is a user defined function from where execution of C/C++ programs start. It is the designated entry point to a program that is executed in an operating system. There must be at least one main() function in e<span>very C++/C program. A main program receive info from another function by writing the command int and then the name of the function and the parameters.</span>
8 0
3 years ago
What features of excel allows you to automatically calculate common formulas with selected data ?
LUCKY_DIMON [66]
The feature of excel which allow you to automatically calculate common formula with selected data is QUICK ANALYSIS.
Quick analysis tool allows one to quickly analyse selected data. The tool can be used to created different types of data such as graph, bar, charts, etc.<span />
4 0
3 years ago
Read 2 more answers
Other questions:
  • The __________ energy in food is changed into mechanical energy by your muscles.
    9·1 answer
  • Holly would like to run an annual major disaster recovery test that is as thorough and realistic as possible. She also wants to
    5·1 answer
  • What need most led to the creation of the Advanced Research Projects Agency Network? DARPA wanted scientists to be able to colla
    10·2 answers
  • A user reports his or her computer is slow to boot. You check the boot order and determine that the computer is checking the C d
    12·1 answer
  • To insert a new field in a table, the ____ keyword should be used with the alter table command
    10·1 answer
  • Which is a feature of a search engine? stores web pages belonging to a single website displays web pages within a browser finds
    8·1 answer
  • Quality answers will be appriciated! :)​
    15·2 answers
  • true or false You are able to change the formatting of a table after it is inserted into a placeholder.
    6·1 answer
  • What product use programmable control?
    11·1 answer
  • What online resource would you use if you wanted to read a review about a new movie?
    8·1 answer
Add answer
Login
Not registered? Fast signup
Signup
Login Signup
Ask question!