What does the following c program code print?
#include
int main() {
char s[]="ADGquizall";
char *ptr =s;
printf("%s",ptr+ptr[2]-ptr[1]);
return 0;
}
int main() {
char s[]="ADGquizall";
char *ptr =s;
printf("%s",ptr+ptr[2]-ptr[1]);
return 0;
}
1
Book
2
tBook
3
stBook
4
quizall