Question
void main()
{
char *str = "Placementadda";
printf("%d",printf("%s",str));
}
What will be output if you compile following c code ?
void main()
{
char *str = "Placementadda";
printf("%d",printf("%s",str));
}
Answer: Option E
Was this answer helpful ?
We cannot copy anything using strcpy function to the character pointer pointing to NULL.
Was this answer helpful ?
Submit Solution