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
Flow and Pressure Drop of Gases in Packed Bed. Air at 394.3 K flows through a packed bed of cylinders having a diameter of 0.012
devlian [24]

The pressure drop of air in the bed is  14.5 kPa.

<u>Explanation:</u>

To calculate Re:

R e=\frac{1}{1-\varepsilon} \frac{\rho q d_{p}}{\mu}

From the tables air property

\mu_{394 k}=2.27 \times 10^{-5}

Ideal gas law is used to calculate the density:

ρ = \frac{2.2}{2.83 \times 10^{-3} \times 394.3}

ρ = 1.97 Kg / m^{3}

ρ = \frac{P}{RT}

R = \frac{R_{c} }{M} = 8.2 × 10^{-5} / 28.97×10^{-3}

R = 2.83 × 10^{-3} m^{3} atm / K Kg

q is expressed in the unit m/s

q=\frac{2.45}{1.97}

q = 1.24 m/s

Re = \frac{1}{1-0.4} \frac{1.97 \times 1.24 \times 0.0127}{2.27 \times 10^{-5}}

Re = 2278

The Ergun equation is used when Re > 10,

\frac{\Delta P}{L}=\frac{180 \mu}{d_{p}^{2}} \frac{(1-\varepsilon)^{2}}{\varepsilon^{3}} q+\frac{7}{4} \frac{\rho}{d_{p}} \frac{(1-\varepsilon)}{\varepsilon^{3}} q^{2}

\frac{\Delta P}{L}=\frac{180 \times 2.27 \times 10^{-5}}{0.0127^{2}} \frac{(1-0.4)^{2}}{0.4^{3}} 1.24 +\frac{7}{4} \frac{1.97}{0.0127} \frac{(1-0.4)}{0.4^{3}} 1.24^{2}

= 4089.748 Pa/m

ΔP = 4089.748 × 3.66

ΔP = 14.5 kPa

4 0
3 years ago
Who was the American founder and leader of the Shakers in the 1770’s who advocated equality, individual responsibility, and peac
DaniilM [7]

Answer: Ann Lee (1736-1784)

Explanation:

6 0
3 years ago
Read 2 more answers
can anyone help me with this please.i have the current and pf for branch 1 and 2 but cant figure out the total current, pf and a
anyanavicka [17]

Answer:

  • branch 1: i = 25.440∠-32.005°; pf = 0.848 lagging
  • branch 2: i = 21.466∠63.435°; pf = 0.447 leading
  • total: i = 31.693∠10.392° leading; pf = 0.984 leading

Explanation:

To calculate the currents in the parallel branches, we need to know the impedance of each branch. That will be the sum of the resistance and reactance.

The inductive reactance is ...

  X_L=j\omega L=j2\pi fL=j100\pi\cdot 15.915\times10^{-3}\approx j4.99984\,\Omega

The capacitive reactance is ...

  X_C=\dfrac{1}{j\omega C}=\dfrac{-j}{100\pi\cdot 318.31\times10^{-6}F}\approx -j10.00000\,\Omega

<u>Branch 1</u>

The impedance of branch 1 is ...

  Z1 = 8 +j4.99984 Ω

so the current is ...

  I1 = V/Z = 240/(8 +j4.99984) ≈ 25.440∠-32.005°

The power factor is cos(-32.005°) ≈ 0.848 (lagging)

<u>Branch 2</u>

The impedance of branch 2 is ...

  Z2 = 5 -j10 Ω

so the current is ...

  I2 = 240/(5 +j10) ≈ 21.466∠63.435°

The power factor is cos(63.436°) ≈ 0.447 (leading)

<u>Total current</u>

The total current is the sum of the branch currents. A suitable calculator can add these vectors without first converting them to rectangular form.

  It = I1 +I2 = (21.573 -j13.483) +(9.6 +j19.2)

  It ≈ 31.173 +j5.717 ≈ 31.693∠10.392°

The power factor for the circuit is cos(10.392°) ≈ 0.984 (leading)

__

The phasor diagram of the currents is attached.

_____

<em>Additional comment</em>

Given two vectors, their sum can be computed several ways. One way to compute the sum is to use the Law of Cosines. In this application, the angle between the vectors is the supplement of the difference of the vector angles: 84.560°.

3 0
2 years ago
How high of a column of sae 30 oil would be required to give the same pressure as 700 mm hg?
Rasek [7]

Hoiu-10,4000 mm.

<h3>Is positive pressure good for PC?</h3>
  • A balanced configuration is the most efficient way to cool your pc although it should tend towards a slight positive pressure if you can help it.
  • Tip: As much as it might seem important, the concept of heat rising doesn't have too much of an effect.

To learn more about it, refer

to https://brainly.in/question/413163

#SPJ4

7 0
1 year ago
Pick a subjectarea/field/topic that you are interested in. For each of the following Bonham- Carver uses of GIS give an example
Vanyuwa [196]

Answer:

I hope following attachment will help you a lot!

Explanation:

3 0
3 years ago
Other questions:
  • What are the causes of kickback on a table-saw?
    13·1 answer
  • A water jet jump involves a jet cross-sectional area of 0.01 m2 , and a jet velocity of 30 m/s. The jet is surrounded by entrain
    6·1 answer
  • Policy makers in the U.S. government have long tried to write laws that encourage growth in per capita real GDP. These laws typi
    6·1 answer
  • In a right triangle, the square of the length of one side is equal to the sum of the squares of the lengths of the other two sid
    10·1 answer
  • a triangle is defined by the three vertices. write the following functions of the triangle class assume that the point class has
    7·1 answer
  • What is the uncertainty in position of an electron of an atom if there is t 2.0 x 10' msec uncertainty in its velocity? Use the
    12·1 answer
  • A gas has an initial volume o.25m^3, and absolute pressure 100kPa. Its initial temperature is 290k. The gas is compressed into a
    11·1 answer
  • 9. An elevator on a construction site is being operated at rated capacity of 6 tons, and is supported by two standard steel cabl
    7·1 answer
  • Respond with TRUE if the symbol of the valve shown belows
    5·1 answer
  • A single-phase load is located 2800 ft from its source. The load draws a current of 86 A and operates on 480 V. The maximum volt
    10·1 answer
Add answer
Login
Not registered? Fast signup
Signup
Login Signup
Ask question!