Professional Documents
Culture Documents
DSA Assignment 1
DSA Assignment 1
Dr. Vishnuvardhan Road, Channasandra, Rajarajeshwari Nagar Post, Bengaluru - 560 098.
Department of Artificial Intelligence and Machine Learning
ASSIGNMENT -1
1. Write a C Program to read n elements to an array and display the values from the end-to-begin.
2. If an array’s base address is 8000 and word size is 4 bytes, find the address of a[25].
3. Write a C program to demonstrate sorting of an array.
4. Write a C program to search an element in an array.
5. Define a pointer. Write a C function to swap two numbers using pointers.