char c[]=”Albus”; printf(“%c”, c); [closed]
There are some facts about c you’re missing: There’s no string datatype. A string is just a sequence of char ending with a 0 byte. What you use here is a string literal — the compiler translates it to an array of char and automatically adds the 0 at the end. An array when passed … Read more