void func(char a, int num)
{
printf("%c",a);
}
int main()
{
func("a", 6); //not func('a',6);
printf("\n");
func("b", 2); //not func('b',6);
}
I understand I am passing a char array of a and b with a null character \0.
Could someone how it ends up printing the characters $ and &?
It could end up printing anything pretty much, probably part of the adresses of
"a"and"b"match the ascii code of$and&.