char字符型显示未定义标识符

#include<iostream>

using namespace std;

void printf(int *pbegin,int *pend)

{

    while(pbegin != pend)

    {

        cout<<*pbegin;

        ++pbegin;

    }

}

 

void printf(char *pbegin,char *pend)

{

    while( pbegin != pend)

    {

        cout<<*pbegin;

        ++pbegin;

    }

}

 

int main()

{

    int num[5]={0,1,2,3,4};

    char name[5]={h,e,l,l,o};//此处出错,请问为什么char是字符型输入字符会报错呢

 

    printf( num,num+5);

    cout<<'\n';

    printf(name,name+5);

    cout<<'\n';

 

    return 0;

}

 char name[5]={'h','e','l','l','o'};要加上单引号表示字符