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
Why do giant stars become planetary nebulas while supergiant stars become supernovas when their nuclear fusion slows and is over
sashaice [31]

The reason why giant stars become planetary nebulas is  Supergiant stars do not have enough mass to generate the gravity necessary to cause a planetary nebula.

<h3>Why do giant stars become planetary nebulae?</h3>

A planetary nebula is known to be formed or created by a dying star. A red giant is known to be unstable and thus emit pulses of gas that is said to form a sphere around the dying star and thus they are said to  be ionized by the ultraviolet radiation that the star is known to releases.

Learn more about  giant stars from

brainly.com/question/27111741

#SPJ1

3 0
2 years ago
Recommend the types of engineers needed to collaborate on a city project to build a skateboard park near protected wetlands.
4vir4ik [10]

Answer:

A civil engineer.

Explanation:

Civil engineering is the science that deals with the design, creation and maintenance of constructions for civil use on the earth's surface. Thus, this specialty seeks to adapt soils to the needs of life in society, creating buildings, bridges, and all other constructions adapted to civil life, while taking care of the correct use of soils and the correct distribution of spaces and resources. to be used for such constructions.

4 0
2 years ago
A parallel plates capacitor is filled with a dielectric of relative permittivity ε = 12 and a conductivity σ = 10^-10 S/m. The c
monitta

Answer:

t = 1.06 sec

Explanation:

Once disconnected from the battery, the capacitor discharges through the internal resistance of the dielectric, which can be expressed as follows:

R = (1/σ)*d/A, where d is is the separation between plates, and A is the area of one of  the plates.

The capacitance C , for a parallel plates capacitor filled with a dielectric of a relative permittivity ε, can be expressed in this way:

C = ε₀*ε*A/d = 8.85*10⁻¹² *12*A/d

The voltage in the capacitor (which is proportional to the residual charge as it discharges through the resistance of the dielectric) follows an exponential decay, as follows:

V = V₀*e(-t/RC)

The product RC (which is called the time constant of the circuit) can be calculated as follows:

R*C = (1/10⁻¹⁰)*d/A*8.85*10⁻¹² *12*A/d

Simplifying common terms, we finally have:

R*C = 8.85*10⁻¹² *12 / (1/10⁻¹⁰) sec = 1.06 sec

If we want to know the time at which the voltage will decay to 3.67 V, we can write the following expression:

V= V₀*e(-t/RC) ⇒ e(-t/RC) = 3.67/10 ⇒ -t/RC = ln(3.67/10)= -1

⇒ t = RC = 1.06 sec.

3 0
3 years ago
If an older multimeter is set to display its reading in megohms, what must you do to determine the correct value? Please help.
Gekata [30.6K]

Answer:

idk

Explanation:

8 0
3 years ago
Refrigerant-134a at 400 psia has a specific volume of 0.1144 ft3/lbm. Determine the temperature of the refrigerant based on (a)
vekshin1

Answer:

a) Using Ideal gas Equation, T = 434.98°R = 435°R

b) Using Van Der Waal's Equation, T = 637.32°R = 637°R

c) T obtained from the refrigerant tables at P = 400 psia and v = 0.1144 ft³/lbm is T = 559.67°R = 560°R

Explanation:

a) Ideal gas Equation

PV = mRT

T = PV/mR

P = pressure = 400 psia

V/m = specific volume = 0.1144 ft³/lbm

R = gas constant = 0.1052 psia.ft³/lbm.°R

T = 400 × 0.1144/0.1052 = 434.98 °R

b) Van Der Waal's Equation

T = (1/R) (P + (a/v²)) (v - b)

a = Van Der Waal's constant = (27R²(T꜀ᵣ)²)/(64P꜀ᵣ)

R = 0.1052 psia.ft³/lbm.°R

T꜀ᵣ = critical temperature for refrigerant-134a (from the refrigerant tables) = 673.6°R

P꜀ᵣ = critical pressure for refrigerant-134a (from the refrigerant tables) = 588.7 psia

a = (27 × 0.1052² × 673.6²)/(64 × 588.7)

a = 3.596 ft⁶.psia/lbm²

b = (RT꜀ᵣ)/8P꜀ᵣ

b = (0.1052 × 673.6)/(8 × 588.7) = 0.01504 ft³/lbm

T = (1/0.1052) (400 + (3.596/0.1144²) (0.1144 - 0.01504) = 637.32°R

c) The temperature for the refrigerant-134a as obtained from the refrigerant tables at P = 400 psia and v = 0.1144 ft³/lbm is

T = 100°F = 559.67°R

7 0
3 years ago
Other questions:
  • What is the difference between a job and a profession
    9·1 answer
  • Q: Draw shear and bending moment diagram for the beam shown in
    5·1 answer
  • What's the difference between a GED and a Diploma?
    12·1 answer
  • Products. of sheet metal​
    8·1 answer
  • The cold drawn AISI 1040 steel bar with 25-mm width and 10-mm thick has a 6- mm diameter thru hole in the center of the plate. T
    10·1 answer
  • The wave-particle duality theory is the first adequate explanation of which one of the following observations about the hydrogen
    10·1 answer
  • Difference between theory and practice?​
    10·1 answer
  • Dndbgddbdbhfdhdhdhhfhffhfhhddhhdhdhdhdhd​
    11·2 answers
  • ───────────────────────────────
    7·1 answer
  • An agricultural manager requires
    12·1 answer
Add answer
Login
Not registered? Fast signup
Signup
Login Signup
Ask question!