This is my program in C:
#include <stdio.h>
char const* voice(void){
return "hey!";
}
int main(){
const char* (*pointer)(void);
pointer = &voice;
printf ("%s\n", *pointer); // check down *
return 0;
}
- *with this i'm trying to print what is returning from pointer but it seems like not working.
What am I doing wrong?
printf( "%s\n", pointer( ) );