1
GATE CSE 2011
MCQ (Single Correct Answer)
+1
-0.3
What does the following fragment of C-program print?
char c[ ] = "GATE2011";
char *p = c;
printf("%s", p + p[3] - p[1]);
2
GATE CSE 2010
MCQ (Single Correct Answer)
+1
-0.3
What does the following program print?
#include < stdio.h >
void f (int *p, int *q) {
p = q;
*p = 2;
}
int i = 0, j = 1;
int main ( ){
f(&i, &j);
printf ("%d %d \ n", i, j);
return 0;
}
3
GATE CSE 2005
MCQ (Single Correct Answer)
+1
-0.3
What does the following C statement declare?
int (*f)(int *);
4
GATE CSE 2004
MCQ (Single Correct Answer)
+1
-0.3
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.Questions Asked from Pointer and Structure in C (Marks 1)
Number in Brackets after Paper Indicates No. of Questions
GATE CSE Subjects
Theory of Computation
Operating Systems
Algorithms
Database Management System
Data Structures
Computer Networks
Software Engineering
Compiler Design
Web Technologies
General Aptitude
Discrete Mathematics
Programming Languages