64 696
Assignments Done
99,4%
Successfully Done
In September 2018

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
Expert's answer
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 first!

Leave a comment

Ask Your question

Submit
Privacy policy Terms and Conditions