IntelliSense Error C Programming -
i working on c assignment , being getting errors following code
char ba[20] = "hellow there"; char *pba; *pba = &ba;
there red line under * , & in third line of code. getting these errors:
- intellisense: declaration has no storage class or type specifier
- intellisense: value of type "char (*)[20]" cannot used initialize entity of type "int *"
is there anyway solve this?
actually, error @ line 3.
char ba[20] = "hellow there"; char *pba; pba = ba; //note :- address must passed pointer, not value @ pointer, *pba means value @ pba
this solve purpose! hope found mistake.
Comments
Post a Comment