Can you please explain the below pointer initializations :
char *cptr = "test"; /* gives no error and warnings */
int *iptr = 10; /* gives only warning */
float *fptr = 3.14; /* gives error */
Why?
Thanks
char *cptr = "test"; /* gives no error and warnings */
int *iptr = 10; /* gives only warning */
float *fptr = 3.14; /* gives error */
Why?
Thanks
Comment