I am getting this error: .c:28: warning: assignment makes integer from pointer without a cast
-any fixes
thank you
#include <stdio.h>
#include <string.h>
void addValue();
void changeId(int data, char *name);
int main()
{
addValue();
changeId(2, "Bill ");
getchar();
return 0;
}
struct Node{
int data;
char *name;
}node;
void addValue()
{
node.name = " Tim";
node.data = 23432;
printf("Employee number: %d\n",node.data);
printf("Employee name: %s\n",node.name);
};
void changeId(int data, char *name)
{
*node.name = *name;
node.data = data;
printf("Employee number: %d\n",node.data);
printf("Employee name: %s\n",*name);
};