Untitled

Anonymous
plain_text
03/06/2024 3:14 AM
312 B
29
Indexable
//passing strings to Function
#include<stdio.h>
#include<string.h>
void display (char c[]) {
printf("Your name is : ");
puts(c);
}
void main(){
char name[20];
printf("Enter your name: \n");
gets(name);
display(name);

}
Editor is loading...
Leave a Comment