Download as docx, pdf, or txt
Download as docx, pdf, or txt
You are on page 1of 1

Q. No. 2: Short Questions.

I. What is a dangling pointer?


II. Suppose a float type pointer ptrfloat contains memory address 0x123AB, what will be the
contents of ptrfloat after performing ptrfloat++ statement.
III. How many types of files exists in C/C++, shortly discuss any one of them.
IV. What are input streams, describe diagrammatically?
V. What is bound checking? Does C/C++ provide bound checking?
VI. Why pointers are very powerful feature, discuss.
VII. Differentiate b/w array and structure.
VIII. Declare array of strings to store the names of 100 students.
IX. Discuss strcat and strncat functions.
X. Why index of an array always starts with zero, discuss.

Q. No. 3: Long questions.

I. Transposition of a matrix is in which it is formed by turning all the rows of a given matrix into
columns and vice-versa. The transpose of matrix A is written AT. Write a program to transpose a
matrix of size 3x3:

II. Declare an array of structure named “Student”, add studentId, marks, cgpa and section as
member of Student structure. Program should input 100 records of different students and
finally print the record of topper student.

You might also like