Given the weird characters in the string you want, you may have encoding problems that make the bytes different while the string looks the same. I can't even copy-paste that string. It messes up my shell.
[edit] Nope, that doesn't work. Your string contains a NULL. Either that or it's unicode... working on it...
size of mainstr is giving the array size(i.e. 12),
whereas funcstr is giving the pointer size(i.e. 4),
will it not give the array size as we declared it as array ?
It is giving the array size for the array because it is an array. It is giving the pointer size for the passed array because it is a pointer -- arrays are passed by reference.