Course Solutions Uncategorized (Solved) : Hello Piece C Programming Code Pointer Initialized Point Array Need Help Display Contents Q35138860 . . . .

(Solved) : Hello Piece C Programming Code Pointer Initialized Point Array Need Help Display Contents Q35138860 . . . .

 

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. . . . .

Leave a Reply

Your email address will not be published. Required fields are marked *

Related Post