Question: Given three variables x, y, z write a function to circularly shift their values to right. In other words if x = 5, y =
- Given three variables x, y, z write a function to circularly shift their values to right. In other words if x = 5, y = 8, z = 10 after circular shift y = 5, z = 8, x =10 after circular shift y = 5, z = 8 and x = 10. Call the function with variables a, b, c to circularly shift values.
- Twenty-five numbers are entered from the keyboard into an array. The number to be searched is entered through the keyboard by the user. Write a program to find if the number to be searched is present in the array and if it is present, display the number of times it appears in the array.
- Find the smallest number in an Array of Array size 15 using pointers.
- Write a program which performs the following tasks:
o initialize an integer array of 10 elements in main
o pass the entire array to a function modify
o in modify multiply each element of array by 3
o return the control to main and print the new array elements in main
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
