#include <stdio.h>
#include <string.h>
int main() {
char* c = "GATECSIT2017";
char* p = c;
printf("%d", (int)strlen(c + 2[p] - 6[p] - 1));
return 0;
}Related Programming & Data Structures PYQs
Match the following. | List I | List II | | --- | --- | | (P) static char var; | (i) Sequence of memory locations to store addres…
A circular queue has been implemented using a singly linked list where each node consists of a value and a single pointer pointing…
Consider the following function implemented in C: ```c void printxy(int x, int y) { int *ptr; x = 0; ptr = &x; y …
The pre-order traversal of a binary search tree is given by 12, 8, 6, 2, 7, 9, 10, 16, 15, 19, 17, 20. Then the post-order travers…
Consider the C program fragment below: ```c while (r >= y) { r = r - y; q = q + 1; } ``` Which of the following conditions…
Consider the following snippet of a C program. Assume swap(&x, &y) exchanges contents of x and y. ```c int main() { int array…
Free account benefits
Turn practice into measurable progress
Public PYQs and reference pages stay free. Sign in when you want GATEverse to remember what you studied and guide what to practise next.