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 ?
Return type of printf is integer and the value of this integer is
exactly equal to number of character including white space printf
function prints. so here printf("Placementadda") will return 13
Was this answer helpful ?
Submit Solution