Sail E0 Webinar
Question

What will be output if you compile following c code ?


void main()
{
char str[] = "Placementadda";
func(str+5);
}
func(char *str)
{
printf("%s",str);
}


Options:
A .  Placementadda
B .  mentadda
C .  Error
D .  None of the above
Answer: Option B




Submit Your Solution Below and Earn Points !
Next Question

Submit Solution

Your email address will not be published. Required fields are marked *

Latest Videos

Latest Test Papers