multidimensional array

Write your question here.

1
2
3
4
scanf("%s" , &rec[0][0]); 
scanf("%s" , &rec[0][1]); 
printf("%s\n","rec[0][0]");
printf("%s\n","rec[0][1]");


if input for rec[0][0] is choosed as "computer"
if input for rec[0][1] is choosed as "science"

output is ;
compscience
science

what is the problem for this code?
The error is probably in the code that you aren't showing here. You should edit your post to include more.
Topic archived. No new replies allowed.