Programming in C: GATE CS previous year questions
Programming in C is part of Programming and Data Structures in the GATE CS syllabus. This page lists 58 past-paper questions on it from official GATE CS papers.
Programming in C
- Common Data for Questions 48 and 49: Consider the following C code segment. int a, b, c…
- Consider the following C function definition. int fX(char *a){ char *b = a; while(*b)…
- Consider the operator precedence and associativity rules for the integer arithmetic…
- Consider the following C program: #include <stdio.h> int main() int a[] = 2, 4, 6, 8…
- Consider the following function: int unknown(int n){ int i, j, k=0; for (i=n/2; i<=n…
- Common Data for Questions 50 and 51: The procedure given below is required to find and…
- Consider the following C program: #include <stdio.h> void stringcopy(char *, char *)…
- Consider the following C program. void f(int, short); void main() { int i = 100; short s…
- Consider the following C program. #include <stdio.h> int main() int a[4][5]=1, 2, 3, 4…
- The attributes of three arithmetic operators in some programming language are given…
- Consider the following ANSI-C program. #include <stdio.h> int main(){ int *ptr, a, b, c…
- Consider the following C program segment. #include <stdio.h> int main() { char s1[7] =…
- Consider the following C program: #include <stdio.h> int g(int n) { return (n+10); } int…
- Consider the following C program: #include <stdio.h> int main() float sum = 0.0, j =…
- The following function computes X^Y for positive integers X and Y. int exp(int X, int Y)…
- Consider the C program fragment below which is meant to divide x by y using repeated…
- Consider the following C program: #include <stdio.h> int main(){ int a = 6; int b = 0…
- What is printed by the following ANSI C program? #include<stdio.h> int main(int argc…
- Consider the following C program: #include <stdio.h> int gate (int n) { int d, t…
- Suppose c = ⟨ c[0], …, c[k-1] ⟩ is an array of length k, where all the entries are from…
More Programming and Data Structures chapters
- Recursion
- Arrays
- Stacks and Queues
- Linked Lists
- Trees and Binary Search Trees
- Binary Heaps
- Graphs (Data Structure)
Frequently asked questions
How many GATE CS questions are there on Programming in C?
PrepWiser has 58 past-paper questions on Programming in C from official GATE CS papers.
Are these real GATE CS questions?
Yes. Each one is from an official GATE CS paper and names its year and set. The answers come from the official answer keys.
Where are the step-by-step solutions?
Every question shows its answer, free. Step-by-step solutions, where available, are part of GATE CS Pro.