0

Plz explain me this code I need it

What is *char ? and these no. r not ascii codes plz explain https://code.sololearn.com/cop4ngOflj6J/?ref=app

7th Oct 2017, 4:37 PM
Sayantan Sinharay
Sayantan Sinharay - avatar
23 Answers
+ 21
actually char* declare pointer variable to store the address of character in string and I have used octal number system here * is pointer to char
7th Oct 2017, 5:02 PM
Surbhi
Surbhi - avatar
+ 17
you can ask 😨 I'll try 😊
7th Oct 2017, 5:06 PM
Surbhi
Surbhi - avatar
+ 17
Thank you Jamie you're right 😊😊
7th Oct 2017, 5:37 PM
Surbhi
Surbhi - avatar
+ 16
I was explaining you wait 😑
7th Oct 2017, 4:56 PM
Surbhi
Surbhi - avatar
+ 2
Ok But I hav several questions
7th Oct 2017, 5:06 PM
Sayantan Sinharay
Sayantan Sinharay - avatar
+ 2
Can I ask u
7th Oct 2017, 5:06 PM
Sayantan Sinharay
Sayantan Sinharay - avatar
+ 2
Why r we using pointers in this case
7th Oct 2017, 5:08 PM
Sayantan Sinharay
Sayantan Sinharay - avatar
+ 1
Ok now why char* can't use ascii
7th Oct 2017, 6:13 PM
Sayantan Sinharay
Sayantan Sinharay - avatar
+ 1
Ok
7th Oct 2017, 8:08 PM
Sayantan Sinharay
Sayantan Sinharay - avatar
+ 1
Then tell me I use 'A' as 90 what is it decimal?
7th Oct 2017, 8:10 PM
Sayantan Sinharay
Sayantan Sinharay - avatar
+ 1
Then char* word="\90" will print A
7th Oct 2017, 8:11 PM
Sayantan Sinharay
Sayantan Sinharay - avatar
+ 1
I know but why that will not work
7th Oct 2017, 8:30 PM
Sayantan Sinharay
Sayantan Sinharay - avatar
+ 1
I know what is octal what is binary what hex
7th Oct 2017, 8:31 PM
Sayantan Sinharay
Sayantan Sinharay - avatar
+ 1
We hav to do sum using that in school
7th Oct 2017, 8:31 PM
Sayantan Sinharay
Sayantan Sinharay - avatar
+ 1
My question is that why pointer char will not take 90 but octal 101
7th Oct 2017, 8:32 PM
Sayantan Sinharay
Sayantan Sinharay - avatar
+ 1
Sorry 65
7th Oct 2017, 8:33 PM
Sayantan Sinharay
Sayantan Sinharay - avatar
0
Thanks a lot @jamie
8th Oct 2017, 2:57 AM
Sayantan Sinharay
Sayantan Sinharay - avatar