#include <stdio.h>
int main(void) {
// printf accepts string as an argument
// if you do arithmetic with the address of the strings
// base address of the string GeeksQuiz - 1000
// 1000 + 5 = 1000 + 5 = 1005
//printf(4 + "GeeksQuiz");
char *s = "Python";
// printf("address of 'P' is %d\n", s);
// printf("the value in the address %d is %c\n", s, *s);
// printf("the next address = %d and the value in that address = %c\n", (1+s), *(1+s));
return 0;
}
/*
'P' 'y'
-660 -660 + 1 = -659
*/
I2luY2x1ZGUgPHN0ZGlvLmg+CgppbnQgbWFpbih2b2lkKSB7CgkvLyBwcmludGYgYWNjZXB0cyBzdHJpbmcgYXMgYW4gYXJndW1lbnQKCS8vIGlmIHlvdSBkbyBhcml0aG1ldGljIHdpdGggdGhlIGFkZHJlc3Mgb2YgdGhlIHN0cmluZ3MKCS8vIGJhc2UgYWRkcmVzcyBvZiB0aGUgc3RyaW5nIEdlZWtzUXVpeiAtIDEwMDAKCS8vIDEwMDAgKyA1ID0gMTAwMCArIDUgPSAxMDA1CgkvL3ByaW50Zig0ICsgIkdlZWtzUXVpeiIpOwoJY2hhciAqcyA9ICJQeXRob24iOwoJLy8gcHJpbnRmKCJhZGRyZXNzIG9mICdQJyBpcyAlZFxuIiwgcyk7CgkvLyBwcmludGYoInRoZSB2YWx1ZSBpbiB0aGUgYWRkcmVzcyAlZCBpcyAlY1xuIiwgcywgKnMpOwoJLy8gcHJpbnRmKCJ0aGUgbmV4dCBhZGRyZXNzID0gJWQgYW5kIHRoZSB2YWx1ZSBpbiB0aGF0IGFkZHJlc3MgPSAlY1xuIiwgKDErcyksICooMStzKSk7CglwcmludGYoIiVzIiwgKDQrcykpOwoJcmV0dXJuIDA7Cn0KCi8qCgogJ1AnCSd5JwotNjYwCS02NjAgKyAxID0gLTY1OQoKKi8=