What is this in c ? Char * | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
+ 1

What is this in c ? Char *

void fun(char*,int *) { ............. ....... } I know that this is char *a character pointer but what is this char * plse explain with example

23rd Jan 2019, 2:14 PM
Programmer Raja
Programmer Raja - avatar
4 Answers
+ 2
char* foo is the same as char *foo.
23rd Jan 2019, 2:38 PM
Zen
Zen - avatar
+ 2
What is your question exactly? You don't know what a pointer is? It holds a memory address, and you can access the value pointed by prefixing it with * (this is called dereferencing). Here is an example: https://code.sololearn.com/cD7DfU0C87jg/?ref=app
23rd Jan 2019, 3:35 PM
Zen
Zen - avatar
+ 1
Zen i don't understand what you say can you explain briefly plse with example
23rd Jan 2019, 3:18 PM
Programmer Raja
Programmer Raja - avatar
+ 1
Zen i understand pointer thank you so much
24th Jan 2019, 12:03 AM
Programmer Raja
Programmer Raja - avatar