#include<stdio.h>
int main( ) {
char name[5];
name[0]=‘r’;
name[1]=‘o’;
name[2]=‘c’;
name[3]=‘k’;
name[4]=’\0’;
printf(“name=%s\n”,name);
return 0;
}
#include<stdio.h>
int main( ) {
char name[5]=“rock”;
printf(“name=%s\n”,name);
return 0;
}
#include<stdio.h>
int main( ) {
char name[]=“rock”;
printf(“name=%s\n”,name);
return 0;
}