Answer:
The answer is "Line 13".
Explanation:
In the given code first, a header file is included for using basic function, In the next line the main method is defined in this method two-pointer variable is declared that is "numbers1 and numbers2", in which variable numbers1 holds a value that is "NULL".
- In the next line, both variable uses malloc() function that is used to allocate memory in heap, and in this function, sizeof() function is used that print its size and also increase its value.
- In the next step, a pointer variable numbers1 assigns a value and another variable numbers2 assigns numbers1 variable value and changes the numbers1 variable.
An apprenticeship prepares you for a career through a structured program of on-the-job learning with classroom instruction, while you work and earn a salary. The programs can last from one to six years and you can choose careers in areas such as telecommunications, health care, computing, business support and the arts. The most common apprenticeships are in construction and manufacturing. If you like to work with your hands and your mind, you might want to consider an apprenticeship after high school. More than 850 occupations can be learned on the job through an apprenticeship.
import random
heads = 0
tails = 0
i = 0
while i < 1000:
rnd_value = random.randint(1, 2)
if rnd_value == 1:
heads += 1
print("heads")
else:
tails += 1
print("tails")
i += 1
print("Heads appeared {} times and tails appeared {} times".format(heads, tails))
I hope this helps!