Getting Started With C

Arithmetic Operations on Characters

Resources :

Featured
Special title treatment

With supporting text below as a natural lead-in to additional content.

Q1.

What is the output of C Program with Strings.?
int main()
{
char ary[]=”Discovery Channel”;
printf(“%s”,ary);
return 0;
}

Q2. What is the output of C Program with Strings.?
int main()
{
char str[]={'g','l','o','b','e'};
printf("%s",str);
return 0;
}