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
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;