0% found this document useful (0 votes)
138 views1 page

Suraku Academy - CT DS - 301

This document discusses various data structure concepts in C including arrays, pointers, structures, and dynamic memory allocation. It asks the reader to write programs that find the second largest element in an array, represent a student structure with dynamic memory allocation, and calculate the address of an element in a 2D array stored in row-major order. Key concepts like pointer arithmetic and how arrays are stored in memory are also explained through examples.

Uploaded by

Arjun Bhargava
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
138 views1 page

Suraku Academy - CT DS - 301

This document discusses various data structure concepts in C including arrays, pointers, structures, and dynamic memory allocation. It asks the reader to write programs that find the second largest element in an array, represent a student structure with dynamic memory allocation, and calculate the address of an element in a 2D array stored in row-major order. Key concepts like pointer arithmetic and how arrays are stored in memory are also explained through examples.

Uploaded by

Arjun Bhargava
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
You are on page 1/ 1

1. Define Data Structure with different types.

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).

You might also like