Hi,
Trying to make the letters ABCDE shift by one by calling in five times i.e. BCDEA, CDEAB, DEABC, EABCD, and ABCDE.
Here's what I got and I know it's probably easy and I'm hosed up, but I'm an extreme noob at programming.
Thanks in advance.
Code:#include <stdio.h> int main(void) char c1 = 'A', c2 = 'B', c3 = 'C', c4 = 'D', c5 = 'E'; char *p1 = &c1, *p2 = &c2, *p3 = &c3, *p4 = &c4, *p5 = &c5; void shift(char *p1, char *p2, char *p3, char *p4, char *p5) { shift(&c1, &c2, &c3, &c4, &c5); return 0; }



LinkBack URL
About LinkBacks


