Question
void main()
{
char str[] = "Placementadda";
str = str + 5;
printf("%s ",str));
}
What will be output if you compile following c code ?
void main()
{
char str[] = "Placementadda";
str = str + 5;
printf("%s ",str));
}
Answer: Option C
Was this answer helpful ?
Error: since name of array is a constant pointer and can't be altered
Was this answer helpful ?
Submit Solution