I've seen certain functions declared in this way:
char* encipher(const char *src, char *key, int is_encode);
I don't understand this part:
char* encipher
What do the asterisks after the datatype mean?
I've seen certain functions declared in this way:
char* encipher(const char *src, char *key, int is_encode);
I don't understand this part:
char* encipher
What do the asterisks after the datatype mean?
The asterisks after the data types mean that a pointer is expected, i.e.
char *src
means that src
is a pointer to a char
. Pointers are data types that contain addresses to instances of other data types, so a char*
contains the address of a char
. The first char*
means that the function returns such a pointer.
But as others said, you may want to read a good textbook on C first.