Suraku Academy - CT DS - 301
Suraku Academy - CT DS - 301
2. Explain Array in detail. The array name itself is a constant pointer? Explain?
Discuss nature of 1-D and 2-D array in context to pointer.
3. WAP to find second largest element from the array of size 8.
4. How to subscripting a pointer that points 2-D array. Explain with example?
5. What is structure? Write a program to represent a student(student roll
number, name of student, age of student, subject marks of student(the
number of student's subject decided at the run time), percentage of student
(calculated based on subject marks). Use some operations like setData(),
showData(), calculatePercentage(), etc. The memory Block must be created
dynamically.
6. What is Pointer. How to pass 1-D array to function. Explain with example.
7. Explain pointer arithmetic with suitable example.
8. How dynamically memory allocation is different from static memory
allocation. How memory allocated dynamically in C with example.
9. How to calculate LOC(LA[i][j]). Array element are stored in column-major
order. Explain with example.
10. Suppose 25*4 Matrix array Score. base(Score)=200 and there are W=4
memory cell. Furthermore, Suppose the programming language stores 2-D
Array using rows-major order what will be the address of score(12,3).