Question: Using C Programming Code solve these problems Problem 1 3 Write a program asking the user to keep entering in strings ( ie names )
Using C Programming Code solve these problems
Problem
Write a program asking the user to keep entering in strings ie names until they enter the string leave at which point youll exit the loop and tell them how many times they entered the string gold This one requires that you use a loop and also keep a tally of the number of times they enter the string gold.
Problem
Implement a function called zerosandones that takes an array s as argument and returns the number of zeros and ones in the array
s
Hint:
Your program should output : :
Problem
Write a function minmax that takes an array as an argument, and print the minimum and maximum values along with their ranks, ie their
positions starting at in the input.
Example: mylist The minimum value is and the rank is in the list The maximum value is and the rank is in
the list
Lets say your array has
Hint: your output should look like this
min is rank is
max is rank is
Note that when sending an array as a parameter its also ok to send its size as a second parameter so c does not get confused not knowing how big it is for example, visual studio might complain if you dont send the size.
Problem
Make two pointers to integers p and p
Make two integers x and y
Set x to
Set y to
Have p point to x
Have p point to x
Print the value p points to ie p should print
Print the value p points to ie p should be
Have p point to y now
Have p point to x now
Print the value p points to ie p should print
Print the value p points to ie p should be
Step by Step Solution
There are 3 Steps involved in it
1 Expert Approved Answer
Step: 1 Unlock
Question Has Been Solved by an Expert!
Get step-by-step solutions from verified subject matter experts
Step: 2 Unlock
Step: 3 Unlock
