prog.cpp:14:9: warning: character constant too long for its type
char a='12345';
^
prog.cpp: In function 'int main()':
prog.cpp:14:9: warning: overflow in implicit constant conversion [-Woverflow]
prog.cpp:16:17: error: invalid conversion from 'char' to 'char*' [-fpermissive]
cout<<count(a,b);
^
prog.cpp:4:5: note: initializing argument 1 of 'int count(char*, char)'
int count(char* str,char chr)
^