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
The basic barometer can be used to measure the height of a building. If the barometric readings at the top and at the bottom of
bixtya [17]

Answer:

h = 287.1 m

Explanation:

the density of mercury \rho =13570 kg/m3

the atmospheric pressure at the top of the building is

p_t = \rho gh  = 13570*908*0.73 = 97.08 kPa

the atmospheric pressure at bottom

p_b = \rho gh  = 13570*908*0.75 = 100.4 kPa

\frac{w_{air}}{A} =p_b -p_t

we have also

(\rho gh)_{air} = p_b - p_t

1.18*9.81*h = (100.4 -97.08)*10^3

h = 287.1 m

7 0
3 years ago
engineering uses data from pareto charts to analyse motor faults caused during their production. Explain one advantage of using
lions [1.4K]
The advantage of a pareto chart is to make sure they have all of their tools
3 0
3 years ago
The "Big Dig" was the nickname of the civil engineering project that redesigned the highway Infrastructure for the city of
zheka24 [161]
Geotechnical since it’s geologicaly based
4 0
3 years ago
I have a Dutch oven that looks like this what do I do?
dangina [55]

Answer:

baking soda and vinegar dish soap

Explanation:

it will create a bubbles and let it sit for 3 hours and it will go away

3 0
3 years ago
WILL GIVE BRAINLIEST!Technician A says it takes two revolutions of the crankshaft to fit all eight cylinders on a V8. Technician
lidiya [134]

Answer:

C

Explanation:

3 0
3 years ago
Read 2 more answers
Other questions:
  • Consider a plane composite wall that is composed of two materials of thermal conductivities kA = 0.1 W/m*K and kB = 0.04 W/m*K a
    13·1 answer
  • Mike is involved in developing the model building codes that various states and local authorities in the United States adopt. He
    6·1 answer
  • OSHA does not approve individual states to have their own safety and health program.
    15·2 answers
  • Motion is defined as a change in an object's position when compared to other objects around it. Mary Ann was watching a slug cra
    10·1 answer
  • A circular ceramic plate that can be modeled as a blackbody is being heated by an electrical heater. The plate is 30 cm in diame
    15·1 answer
  • You are considering building a residential wind power system to produce 6,000 kWh of electricity each year. The installed cost o
    15·1 answer
  • "Write a statement that outputs variable numItems. End with a newline. Program will be tested with different input values."
    15·1 answer
  • Everfi futuresmart module 6 retirement pie chart
    5·2 answers
  • In the long run, if the firm decides to keep output at its initial level, what will it likely do? Stay on SRATC3 but decrease to
    15·1 answer
  • Do the coil resistances have any effect on the plots?
    10·1 answer
Add answer
Login
Not registered? Fast signup
Signup
Login Signup
Ask question!