N
Nmishra
Hi,
I have a problem in assigning a name to a pointer dynamically from
another pointer.
e.g. if I have
char* name = "myPtr";
and I want to have a int pointer having the name as myPtr taking the
name from the variable name,
int *(*name) = int[10]...
this line of code gives me an error of type mismatch. I am using gcc
as my compiler.
and if i write as
int *name = int[10] it takes name as the variable identifier rather
than myPtr as the identifier.
Any help is appreciated.
Regards,
NMishra
I have a problem in assigning a name to a pointer dynamically from
another pointer.
e.g. if I have
char* name = "myPtr";
and I want to have a int pointer having the name as myPtr taking the
name from the variable name,
int *(*name) = int[10]...
this line of code gives me an error of type mismatch. I am using gcc
as my compiler.
and if i write as
int *name = int[10] it takes name as the variable identifier rather
than myPtr as the identifier.
Any help is appreciated.
Regards,
NMishra