// create a string firstName & Lastname to store details
// of user & print all the characters using loop
#include <stdio.h>
void printString(char arr[]);
int main(){
char firstName[] = "Shradha";
char lastName[] = "Khapra";
printString(firstName);
printString(lastName);
return 0;
}
void printString(char arr[]){
for(int i=0; arr[i] !='\0' ;i++){
printf("%c",arr[i]);
}
printf("\n");
}
To embed this project on your website, copy the following code and paste it into your website's HTML: