My issue
char week[4][10] … 10 explain about???
My code
#include <stdio.h>
int main(void) {
// your code goes here
return 0;
}
Learning course: Learn C
Problem Link: CodeChef: Practical coding for everyone
char week[4][10] … 10 explain about???
#include <stdio.h>
int main(void) {
// your code goes here
return 0;
}
Learning course: Learn C
Problem Link: CodeChef: Practical coding for everyone
@hrithikkkk06
U have to do it like this.
#include <stdio.h>
int main() {
char week[4][10] = {"Monday", "Tuesday", "Wednesday", "Thursday"};
printf("%s\n", week[ 2 ]);
printf("%s", week[ 3 ]);
return 0;
}