qstn 1
unknown
c_cpp
4 years ago
457 B
7
Indexable
#include<stdio.h> #include<string.h> #include<stdlib.h> int main() { // qst a int i; printf("Enter any of the four students name: \n"); char names[4][16]; for(i=0; i<4; i++) { scanf("%s", names[i]); } //qstn b printf("\nDisplaying the four students name with two new lines: \n\n"); for(i=0; i<4; i++) { printf("%s", names[i]); printf("\n\n"); } return 0; }
Editor is loading...