Char *ptr= "how can string store in pointer variable"; | Sololearn: Learn to code for FREE!
Novo curso! Todo programador deveria aprender IA generativa!
Experimente uma aula gr√°tis
+ 2

Char *ptr= "how can string store in pointer variable";

Explain me how can we store string in pointer variable and access them in c language???

23rd Jun 2019, 6:21 AM
Gaurav Rawat
Gaurav Rawat - avatar
2 Respostas
+ 4
*ptr=a For example consider that a is stored in the memory location 2000. The ptr will point the address 2000 for getting a. I hope u understand ūüėĀ
5th Jul 2019, 10:19 AM
Shan Mugam
Shan Mugam - avatar
+ 1
kk
2nd Jul 2019, 12:30 PM
Pria Sains