Cpr - Qb Chapter 05

  • November 2019
  • PDF

This document was uploaded by user and they confirmed that they have the permission to share it. If you are author or own the copyright of this book, please report to us by using this DMCA report form. Report DMCA


Overview

Download & View Cpr - Qb Chapter 05 as PDF for free.

More details

  • Words: 241
  • Pages: 1
Question Bank: Programming in ‘C’ (9017) Class: FYIF Chapter No. 05 Pointers Summer 2007: 1. Justify following statements:

int int int int

Marks = 28 2

a = 10; *b = &a; *c = b; 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 Marks = 28 Winter 2007: 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)

Related Documents

Cpr - Qb Chapter 05
November 2019 6
Cpr - Qb Chapter 03
November 2019 1
Cpr - Qb Chapter 04
November 2019 5
Cpr - Qb Chapter 01
November 2019 3
Cpr - Qb Chapter 02
November 2019 2