Answered step by step
Verified Expert Solution
Question
1 Approved Answer
i have qustion, how i can move element in 2D char array for example main char is C( just C will be moved each time)
i have qustion, how i can move element in 2D char array for example main char is "C"( just C will be moved each time) i want to move C top or down, left or right, in each time i press 2 for down, 6 right, 8 top , 4 left, when C moved should swapped with the char in the moved position
[ A , B , C ]
[ D , E , F ]
[ G , H , I ]
after move C down, the output:
[ A , B , F]
[ D , E , C]
[ G , H , I ]
And so on..
thank you,,
Step by Step Solution
There are 3 Steps involved in it
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started