This is my code i am getting error in initializing the char array in the constructor. i have also tried to initialize it with a string but all in vain . good help will be appreciated.
#include <iostream>
using namespace std;
class employe
{
    char name[30];
    int id;
public:
    employe(int a, char b[30] ) :id(a), name(b)
    {
    }
    char getid()
    {
        return name;
    }
};
 
    