Function that shifts the stored value of five character

Assignment Help C/C++ Programming
Reference no: EM13939051

Please help with the following problem.

This needs to be in "C"

Write a function that shifts the stored value of five character variables in a circular fashion. Your function should work in the following way. Suspose that C1, C2, C3, C4, C5 are variables of type char, and suspose that the values of these variables are 'A', 'B', 'C', 'D', 'E', respectively.

The function call shift(&c1,&c2,&c3,&c4,&c5) should cause the variables C1, C2, C3, C4, C5 to have the values 'B', 'C', 'D', 'E', 'A', respectively.

The function definition starts as follows:

void shift(char *p1, char *p2, char *p3, char *p4, char *p5)
{

Test the function by calling it five times and printing out, in turn, BCDEA, CDEAB, DEABC, EABCD, and ABCDE.

****This needs to be in "C"*****

Reference no: EM13939051

Questions Cloud

What could be possible explanation for psychosomatic illness : What could be a possible explanation for psychosomatic illness? What anatomical structures and functions could help explain this phenomena? Be specific.
Determine the desired postadjustment balance in allowance : Determine the desired postadjustment balance in allowance for doubtful accounts. If the balance in allowance for doubtful accounts before the $8,900 write-off was a debit of $450, compute bad debt expense.
Why is sympathetic and parasympathetic attached to pacemaker : If the pacemaker of the heart generates it's own beat, why is the sympathetic and parasympathetic attached to the pacemaker? How and why would the sympathetic and parasympathetic responses be called upon? What regulates this mechanism? Be very spe..
Understanding of international trade theory : Demonstrate an understanding of international trade theory, counter trad and international financial markets
Function that shifts the stored value of five character : Write a function that shifts the stored value of five character variables in a circular fashion. Your function should work in the following way. Suspose that C1, C2, C3, C4, C5 are variables of type char, and suspose that the values of these varia..
How would supplements be administered and why : A patient was experiencing stomach problems and was starting to show signs of vitamin deficiencies. Which vitamin would be most affected with a stomach pathology and why? How would supplements be administered and why?
Support the operation of the buildings and sites : Overview of the items which support the operation of the building(s) and sites - Sustainable building and site designs are transforming civil engineering industry significantly in the past decade. This project will give each group an opportunity to..
Z scores and the area under the normal curve : Find the proportion of observations (area under the curve) from a standard normal distribution that satisfies each of the following statements:
How many gallons of direct materials should be purchased : How many gallons of direct materials should be purchased during the three months ending March 31?

Reviews

Write a Review

C/C++ Programming Questions & Answers

  Create program that uses functions and reference parameters

Create program that uses functions and reference parameters, and asks user for the outside temperature.

  Write a program using vectors and iterators

Write a program using vectors and iterators that allows a user to maintain a personal list of DVD titles

  Write the code required to analyse and display the data

Calculate and store the average for each row and column. Determine and store the values for the Average Map.

  Write a webservices application

Write a webservices application that does a simple four function calculator

  Iimplement a client-server of the game

Iimplement a client-server version of the rock-paper-scissors-lizard-Spock game.

  Model-view-controller

Explain Model-View-Controller paradigm

  Design a nested program

How many levels of nesting are there in this design?

  Convert celsius temperatures to fahrenheit temperatures

Write a C++ program that converts Celsius Temperatures to Fahrenheit Temperatures.

  Evaluate and output the value in the given base

Write C program that will input two values from the user that are a Value and a Base with which you will evaluate and output the Value in the given Base.

  Design a base class shape with virtual functions

Design a base class shape with virtual functions

  Implementation of classes

Implementation of classes Chart and BarChart. Class barChart chould display a simple textual representation of the data

  Technical paper: memory management

Technical Paper: Memory Management, The intent of this paper is to provide you with an in depth knowledge of how memory is used in executing, your programs and its critical support for applications.

Free Assignment Quote

Assured A++ Grade

Get guaranteed satisfaction & time on delivery in every assignment order you paid with us! We ensure premium quality solution document along with free turntin report!

All rights reserved! Copyrights ©2019-2020 ExpertsMind IT Educational Pvt Ltd