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
Joey has a car that uses the hand crank to open the windows. Joey is wondering where the energy comes from to open the windows.T
Sedaia [141]

Explanation:

Joey has a car that uses the hand crank to open the windows. Joey is wondering where the energy comes from to open the windows.The sunHuman-powered energy from JoeyThe hand crankThe moving car

5 0
3 years ago
Drag each item to show if it is an element or not an element.
Flauer [41]

Answer:

CARBON

Explanation:

HOPE THIS HELPS SORRY FOR CAPS

5 0
3 years ago
Find the Rectangular form of the following phasors?
almond37 [142]

Answer:

The angles are missing in the question.

The angles are :

45,     30,    60,     90,    -34,     -56,      20,     -42,  -65,    -15

P=10, P=5,  P=25, P=54, P=65, P=95, P=250, P=8, P=35, P=150

Explanation:

1. P = 10,   θ = 45°  rectangular coordinates

x = r cosθ  ,   y = r sinθ

So, rectangular form is x + iy

x = P cosθ = 10 cos 45°

  = 7.07

y =P sinθ = 10 sin 45°

  = 7.07

Therefore, rectangular form

x + iy = 7.07 + i (7.07)

2. P = 5 , θ = 30°

x = 5 cos  30° = 4.33

y = 5 sin  30° = 2.5

So, (x+iy) = 4.33 + i (2.5)

3. P = 25 , θ = 60°

x = 25 cos  60° = 12.5

y = 25 sin  60° = 21.65

So, (x+iy) = 12.5 + i (21.65)

4. P = 54 , θ = 90°

x = 54 cos  90° = 0

y = 54 sin  90° = 54

So, (x+iy) = 0+ i (54)

5. P = 65 , θ = -34°

x = 65 cos  (-34°) = 53.88

y = 65 sin  (-34°) = -36.34

So, (x+iy) = 53.88 - i (36.34)

6. P = 95 , θ = -56°

x = 95 cos  (-56)° = 53.12

y = 95 sin  (-56)° = -78.75

So, (x+iy) = 53.12 - i (78.75)

7. P = 250 , θ = 20°

x = 250 cos  20° = 234.92

y = 250 sin 20° = 85.5

So, (x+iy) = 234.92 + i (85.5)

8. P = 8 , θ = (-42)°

x = 8 cos  (-42)° = 5.94

y = 8 sin  (-42)° = -5.353

So, (x+iy) = 5.94 - i (5.353)

9. P = 35 , θ = (-65)°

x = 35 cos  (-65)° = 14.79

y = 35 sin  (-65)° = -31.72

So, (x+iy) = 14.79 - i (31.72)

10. P = 150 , θ = (-15)°

x = 150 cos  (-15)° = 144.88

y = 150 sin  (-15)° = -38.82

So, (x+iy) = 144.88 - i (38.82)

6 0
3 years ago
Initially when 1000.00 mL of water at 10oC are poured into a glass cylinder, the height of the water column is 1000.00 mm. The w
Dafna11 [192]

Answer:

\mathbf{h_2 =1021.9 \  mm}

Explanation:

Given that :

The initial volume of water V_1 = 1000.00 mL = 1000000 mm³

The initial temperature of the water  T_1 = 10° C

The height of the water column h = 1000.00 mm

The final temperature of the water T_2 = 70° C

The coefficient of thermal expansion for the glass is  ∝ = 3.8*10^{-6 } mm/mm  \ per ^oC

The objective is to determine the the depth of the water column

In order to do that we will need to determine the volume of the water.

We obtain the data for physical properties of water at standard sea level atmospheric from pressure tables; So:

At temperature T_1 = 10 ^ 0C  the density of the water is \rho = 999.7 \ kg/m^3

At temperature T_2 = 70^0 C  the density of the water is \rho = 977.8 \ kg/m^3

The mass of the water is  \rho V = \rho _1 V_1 = \rho _2 V_2

Thus; we can say \rho _1 V_1 = \rho _2 V_2;

⇒ 999.7 \ kg/m^3*1000 \ mL = 977.8 \ kg/m^3 *V_2

V_2 = \dfrac{999.7 \ kg/m^3*1000 \ mL}{977.8 \ kg/m^3 }

V_2 = 1022.40 \ mL

v_2 = 1022400 \ mm^3

Thus, the volume of the water after heating to a required temperature of  70^0C is 1022400 mm³

However; taking an integral look at this process; the volume of the water before heating can be deduced by the relation:

V_1 = A_1 *h_1

The area of the water before heating is:

A_1 = \dfrac{V_1}{h_1}

A_1 = \dfrac{1000000}{1000}

A_1 = 1000 \ mm^2

The area of the heated water is :

A_2 = A_1 (1  + \Delta t  \alpha )^2

A_2 = A_1 (1  + (T_2-T_1) \alpha )^2

A_2 = 1000 (1  + (70-10) 3.8*10^{-6} )^2

A_2 = 1000.5 \ mm^2

Finally, the depth of the heated hot water is:

h_2 = \dfrac{V_2}{A_2}

h_2 = \dfrac{1022400}{1000.5}

\mathbf{h_2 =1021.9 \  mm}

Hence the depth of the heated hot  water is \mathbf{h_2 =1021.9 \  mm}

4 0
3 years ago
What is the minimum recommended safe distance from an X-ray source?
lara31 [8.8K]
Hi! I believe the answer is 2 meters(:
3 0
3 years ago
Read 2 more answers
Other questions:
  • The function of a circuit breaker is to _____.
    12·1 answer
  • Air (ideal gas) is contained in a cylinder/piston assembly at a pressure of 150 kPa and a temperature of 127°C. Assume that the
    12·1 answer
  • The engine of a 2000kg car has a power rating of 75kW. How long would it take (seconds) to accelerate from rest to 100 km/hr at
    10·1 answer
  • Local technology is foundation for modern technology? justufy this statement with example.​
    12·1 answer
  • The Acme tool is aligned to the work with: A. A square B. The eye C. An Acme tool gage D. A center gage
    14·1 answer
  • Let CFG G be the following grammar.
    7·2 answers
  • How do engineering and technology impact the natural world and environment
    6·1 answer
  • What are the four types of physical hazards?
    13·2 answers
  • A school is playing $0.XY per kWh for electric power. To reduce its power bill, the school installs a wind turbine with a rated
    6·1 answer
  • Plz help electrical technology
    15·2 answers
Add answer
Login
Not registered? Fast signup
Signup
Login Signup
Ask question!