Question: C PROGRAMMING QUESTION: I have the following char array in C language: char arrayTrack[16] = {'X','s','X','s','s','X','s','s','s','X','s','X','s','s','X','X'}; I need to pull each character out one by

C PROGRAMMING QUESTION:

I have the following char array in C language:

char arrayTrack[16] = {'X','s','X','s','s','X','s','s','s','X','s','X','s','s','X','X'};

I need to pull each character out one by one and load those characters into a char type to print. I am programming a PSoC5 microcontroller an do not have access to most printing functions (such as printf), hence why I need to load each character into a char type (this is the only way I know). I have my print function on a continuous loop, and my goal is to print a new character with each iteration by loading the characters into a char type and then printing the char type, but I need it to also load the previous characters as well for each iteration. For example, I want my output to be:

X

Xs

XsX

XsXs

XsXss

and so on.

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!