Question & Answer: What is wrong with the declaration? char & m: Answers: The address of a variable cannot be found when it's dec…..

What is wrong with the declaration? char &m; Answers: a. The address of a variable cannot be found when its declared. b. The variable is a pointer and a pointer is declared using a* C. It is not initialized

What is wrong with the declaration? char & m: Answers: The address of a variable cannot be found when it’s declared. The variable is a pointer and a pointer is declared using a*. It is not initialized

Expert Answer

 

Don't use plagiarized sources. Get Your Custom Essay on
Question & Answer: What is wrong with the declaration? char & m: Answers: The address of a variable cannot be found when it's dec…..
GET AN ESSAY WRITTEN FOR YOU FROM AS LOW AS $13/PAGE
Order Essay

char &m is illegeal statement becauser &m indicate address of m.In order to access address of m first we need to declare a variable m that use the folloing statement:

char m;

This statement will create a character variable and allocated some memory now we can access that memory using &m

If you want to declare a pointer variable then use

char *m;

now m is a pointer varaible of type chat and it can store a address of a charater variable

for example

char choice=’A’;

char *m;

m=&choice;

Still stressed from student homework?
Get quality assistance from academic writers!