Skip to content
Early access — you're among the first to try PYQLabs. Share feedback
Concept drill

c-language

GATE CSE & IT · Symbol Tables & Storage · 1991-2025

15
PYQs
93%
keyed
2
elite explanations
13
years appeared

Study anchor

Source-book anchor pending for this concept.

Practice action

Start latest PYQ

PYQs in this concept

All concepts →
2025 PYQ

Consider the following C program : #include <stdio.h> void stringcopy(char *, char *); int main( ) { char a[30] = "@#Hello world!"; stringcopy(a,a+2); printf("%s\n", a); return 0;...

mediumanswer keyelite explanation
2024 PYQ

Consider the following C program: #include &ltstdio.h> int main() { int a = 6; int b = 0; while(a Which one of the following statements is CORRECT?

easyanswer keyelite explanation
2023 PYQ

The integer value printed by the ANSI-C program given below is ___________. #include<stdio.h> int funcp(){ static int x = 1; x++ ; return x; } int main(){ int x,y; x = funcp(); y =...

easybasic explanation
2021 PYQ

Consider the following ANSI C program. #include <stdio.h> int main( ) { int i, j, count; count = 0; i = 0; for (j = -3; j = 0) && (i++)) count = count + j; } count = count + i; pri...

mediumanswer keybasic explanation
2018 PYQ

Consider the following C program. #include< stdio.h > struct Ournode{ char x,y,z; }; int main(){ struct Ournode p = {'1', '0', 'a'+2}; struct Ournode *q = &p; printf ("%c, %c", *((...

easyanswer key
2014 PYQ

Consider the following program in C language: #include < stdio.h > main() { int i; int *pi = &i; scanf("%d", pi); printf("%d\n", i + 5); } Which one of the following statements is...

easyanswer key
2011 PYQ

Consider the following recursive C function that takes two arguments: unsigned int foo (unsigned int n, unsigned int r) { if (n > 0) return((n % r) + foo(n/r, r)); else return 0; }...

easyanswer key
2006 PYQ

Consider this C code to swap two integers and these five statements: void swap(int *px, int *py) { *px = *px - *py; *py = *px + *py; *px = *py - *px; } S1: will generate a compilat...

mediumanswer key
2005 PYQ

What does the following C statement declare? int (*f)(int *);

easyanswer key
2005 PYQ

Consider the following C program: double foo(double); /* Line 1 */ int main () { double da, db; //input da db = foo(da); } double foo(double a){ return a; } The above code compiled...

mediumanswer key
2004 PYQ

Consider the following C function: void swap (int a, int b) { int temp; temp = a; a = b; b = temp; } In order to exchange the values of two variables x and y.

easyanswer key
2002 PYQ

Consider the following declaration of a two-dimensional array in C: char a[100][100]; Assuming that the main memory is byte-addressable and that the array is stored starting from m...

easyanswer key
2000 PYQ

The following C declarations struct node{ int i: float j; }; struct node *s[10]; define s to be

easyanswer key
2000 PYQ

The number of tokens in the following C statement is: printf("i = %d, &i = %x",i, &i);

easyanswer key
1991 PYQ

Indicate the following statement true or false: Although C does not support call by name parameter passing, the effect can be correctly simulated in C.

mediumanswer keybasic explanation