Question 36
What is the output of the code snippet?
#include <stdio.h>
int main(void) {
char *s = "GATE2026";
printf("%s", s + 4);
return 0;
}Detailed Solution
s + 4 advances character pointer s by 4 bytes, pointing to the string starting at '2026'.