Hello, I have my piece of C programming code and I have apointer initialized to point to my array and I need help todisplay the contents of my array using a while loop or do-whileloop. The stop condition should be when the pointer reaches’ ‘. The code is below:
#include <stdio.h>
int main ()
{
char array[80];
printf(“Enter a string: “);
scanf(“%[^n]”, &array);
printf(“%sn”, array);
char * p;
p = array;
}
Expert Answer
An answer will be send to you shortly. . . . .