I am writing a program in which i need 2 have a space in a 2 dimensional integer do i incoroprate a space in an integer array when space is a character?
Who is Participating?
I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

' '
is an integer.
Is that what you mean?

Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
I don't exactly understand what do you mean by "have a space in a 2 dimensional integer array".

But if you want to insert a ' ' char to an integer array you can insert it's ascii value.
Or you can use Collection's array (uses objects) and insert space char as it is.
shilpi84Author Commented:
what i meant was that for example i have 2 enter the following array int a[4][4].the element of row 4 and column 1 is a space how do i enter space in this array.
1  4  15  7
8  10  2  11
14  3  6  13
12  9  5    
Let me see, you have a matrix of numbers 4x4, where the bottom  right number is a space?
(under 13, right to 5)
you can't just insert char of space into integer array.
What you can do.
I can give you 2 solution(using INT array):

1)tag the "cell" where you need this space to appear with another number you never use. (like
    0,-1,99 etc')
   and on your other array manipulations check for this tag.
2)store the ascii values of the numbers and not numbers them self, this way you can insert space.

shilpi84Author Commented:
What if i want 2 enter a 2 digit number for example 15 what would be the ascii value of 15?
It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today

From novice to tech pro — start learning today.