Answer to Question #33942 in C++ for amila kasun

Question #33942
char currency[2][3];
if(currency[0][0]=='A'){
.................. }
why we cant use in this way
is it because the null character.................
then give me a solution
1
Expert's answer
2013-08-08T09:05:19-0400
As it goes, we don't know what is there it's just a memory, we didn't initialized it with a value, so there can be everything.



char currency[2][3] = { "Ap", "xz"};
if(currency[0][0] == 'A') {....}

Need a fast expert's response?

Submit order

and get a quick answer at the best price

for any assignment or question with DETAILED EXPLANATIONS!

Comments

No comments. Be the first!

Leave a comment

LATEST TUTORIALS
APPROVED BY CLIENTS