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:

  1. intellisense: declaration has no storage class or type specifier
  2. 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

Popular posts from this blog

commonjs - How to write a typescript definition file for a node module that exports a function? -

openid - Okta: Failed to get authorization code through API call -

ios - Change Storyboard View using Seague -