Strings

36

What will be output if you compile following c code ?

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

A. Placementadda
B. mentadda
C. Error
D. None of the above

37

What will be output if you compile following c code ?

void main()
{
    printf(5+'Placementadda');
}

A. Error
B. Placementadda
C. mentadda
D. None of the above