(C PROGRAMMING ONLY) 1. Pointing Fingers by CodeChum Admin I am so mad at my brothers, they always point their fingers to me whenever mom gets angry ? Now that I'm knowledgeable about pointers, I'm going to point all of my 5 fingers to them. Let's see who's tough now! Instructions: In the code editor, you are provided with a main() function where the user is asked for 5 double numbers. Then, in lines 19 - 23, your task is to set the addresses of these numbers to each of the pointers. The address of the first number, a, should be assigned to the first pointer, the address of the second number, b, should be assigned to the second pointer, and so on. Input 1. First number 2. Second number 3. Third number 4. Fourth number 5. Fifth number Output Enter 1st number: 23.2 Enter 2nd number: 10.01 Enter 3rd number: 800 Enter4th number: 24 Enter 5th number: 21 23.2 10.0 800.0 24.0 21.0
(C
1. Pointing Fingers
by CodeChum Admin
I am so mad at my brothers, they always point their fingers to me whenever mom gets angry ?
Now that I'm knowledgeable about pointers, I'm going to point all of my 5 fingers to them. Let's see who's tough now!
Instructions:
In the code editor, you are provided with a main() function where the user is asked for 5 double numbers.
Then, in lines 19 - 23, your task is to set the addresses of these numbers to each of the pointers. The address of the first number, a, should be assigned to the first pointer, the address of the second number, b, should be assigned to the second pointer, and so on.
Input
1. First number
2. Second number
3. Third number
4. Fourth number
5. Fifth number
Output
Enter 1st number: 23.2
Enter 2nd number: 10.01
Enter 3rd number: 800
Enter4th number: 24
Enter 5th number: 21
23.2 10.0 800.0 24.0 21.0
Step by step
Solved in 2 steps with 2 images