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
Anettt [7]
3 years ago
11

Overview In C, a string is simply an array of characters. We have used literal strings all along – the stuff in between the quot

es in a printf is a literal string. A literal string can be stored in a character array for later use, just as you would store the value 12 in an int variable. The string library string.h provides several functions for manipulation strings. In this week’s lab, you will see static and dynamic ways of storing strings, and write your own versions of the string library function strcpy(), which copies one string into another.
Engineering
1 answer:
salantis [7]3 years ago
3 0

#include<stdio.h>

#include<string.h>

 

int main() {

  char str1[100];

  char str2[100];

 

  printf("\nEnter the String 1 : ");

  gets(str1);

 

  strcpy(str2, str1);

  printf("\nCopied String : %s", str2);

 

  return (0);

}

You might be interested in
compressors, the gas is often cooled while being compressed to reduce the power consumed by the compressor. explain how cooling
ASHA 777 [7]

The amount of work done by steady flow devices varies with the particular gas volume. The kinetic energy of gas particles decreases during cooling.

When the gas is subjected to intermediate cooling during compression, the gas specific volume is reduced, which lowers the compressor's power consumption. Compression is less adiabatic and more isothermal because the compressed gas must be cooled between stages since compression produces heat. The system's thermodynamic cycle's cold sink temperature is lowered by cooling the compressor coils. By increasing the temperature difference between the heat source and the cold sink, this improves efficiency.

Learn more about thermodynamics here-

brainly.com/question/1368306

#SPJ4

8 0
1 year ago
Provide an argument justifying the following claim: The average (as defined here) of two Java ints i and j is representable as a
ahrayia [7]

Answer:

public static int average(int j, int k) {

return (int)(( (long)(i) + (long)(j) ) /2 );

}

Explanation:

The above code returns the average of two integer variables

Line 1 of the code declares a method along with 2 variables

Method declared: average of integer data type

Variables: j and k of type integer, respectively

Line 2 calculates the average of the two variables and returns the value of the average.

The first of two integers to average is j

The second of two integers to average is k

The last parameter ensures average using (j+k)/2

3 0
3 years ago
Select the correct answer. Which existing technology did engineers use to enhance the speed of propeller-driven airplanes
Musya8 [376]

metallurgy:

Explanation:

7 0
2 years ago
What is this spray pattern defect most likely caused by:
DiKsa [7]

Answer:

fluid nozzle that is too large

6 0
2 years ago
Q2) An engineer borrowed $3000 from the bank, payable in six equal end-of-year payments at 8%. The bank agreed to reduce the int
tatyana61 [14]
Answer is: $637.28; just did the math but i really don’t want to type it all out.
6 0
3 years ago
Other questions:
  • A turbine produces shaft power from a gas that enters the turbine with a (static) temperature of 628 K, a velocity of 143 m/s an
    7·1 answer
  • Assign numMatches with the number of elements in userValues that equal matchValue. userValues has NUM_VALS elements. Ex: If user
    14·1 answer
  • Consider a 1000-W iron whose base plate is made of 0.5-cm-thick aluminum alloy 2024-T6 (rho = 2770 kg/m3 and cp = 875 J/kg·°C).
    12·1 answer
  • So far in your lifetime, about how much garbage have you contributed
    12·1 answer
  • A tank has two rooms separated by a membrane. Room A has 1 kg of air and a volume of 0.5 m3; room B has 0.75 m3 of air with dens
    15·1 answer
  • How does refrigeration preserve food and dead bodies​
    12·2 answers
  • What quantity measures the effect of change?
    12·2 answers
  • A steel rod, which is free to move, has a length of 200 mm and a diameter of 20 mm at a temperature of 15oC. If the rod is heate
    10·1 answer
  • (True/False) Unix is written in the C language. *<br> True<br> O False
    10·2 answers
  • How many times greater is the value of the 2 of the 270413 than the valuce of the 2 in 419427?
    8·1 answer
Add answer
Login
Not registered? Fast signup
Signup
Login Signup
Ask question!