If i was a beginner and wanted to use your instructions i might write something like this
#include <stdio.h>
#include <string.h>
int main(void)
{
char* strPointer;
Type: Posts; User: std10093
If i was a beginner and wanted to use your instructions i might write something like this
#include <stdio.h>
#include <string.h>
int main(void)
{
char* strPointer;
You do not allocate memory for the name.You should do it with malloc.
Also in the print function notice that you have i<2 and not i<3