You are on page 1of 1

Question Bank: Programming in ‘C’ (9017) Class: FYIF

Chapter No. 05 Pointers

Summer 2007: Marks = 28


1. Justify following statements: 2
int a = 10;
int *b = &a;
int *c = b;
int d = *b + *c;
2. What is pointer? 2
3. Distinguish between call by value and call by
reference (W’07). 4
4. Write a program using pointers to compute sum of all
elements stored in an array. 4
5. What will be the output of the following program? 4
#include<stdio.h>
void main ( )
{
float a = 13.5;
float *b, *c;
b = &a; c = b /* suppose address of a is 1006*/
printf(“%u %u %f %f”, &a, b, *(&a), *b);
}
6. Explain use of pointers and arrays. 4
7. Explain the concept of pointer’s arithmetic operations
with examples. (W’07) 4
8. How pointer is initialized? 4

Winter 2007: Marks = 28


1. What is pointer variable? 2
2. Give syntax of declaring and initializing pointer. 2
3. Explain concept of array with pointer. 4
4. Write a program to reverse the string using pointer. 4
5. What is pointer? Give the use of ampersand (&) and
asterisk (*) operators in pointer. 4
6. Explain the meaning of following statement with
reference to pointers. 4
int *P, X;
X = 10;
*P = X;
P = &X;

CPR (FYIF) by Mr. Kute T. B. (Lecturer in IT, KK Wagh Polytechnic, Nashik 2007-2008)

You might also like