0% found this document useful (0 votes)
24 views

CUTM1602 Programming in C DES Module 3

The document discusses arrays in C programming. It contains 10 questions about arrays, including defining what an array is, the disadvantages of arrays, initializing and accessing array elements, passing arrays to functions, creating multi-dimensional arrays, and examples of array programs. The questions cover basic array concepts and operations in C.

Uploaded by

santhosh7rsr
Copyright
© © All Rights Reserved
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
24 views

CUTM1602 Programming in C DES Module 3

The document discusses arrays in C programming. It contains 10 questions about arrays, including defining what an array is, the disadvantages of arrays, initializing and accessing array elements, passing arrays to functions, creating multi-dimensional arrays, and examples of array programs. The questions cover basic array concepts and operations in C.

Uploaded by

santhosh7rsr
Copyright
© © All Rights Reserved
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
You are on page 1/ 2

CENTURION UNIVERSITY OF TECHNOLOGY AND MANAGEMENT

ANDHRAPRADESH

SUBJECT NAME: Programming in C


SUBJECT CODE: CUTM 1602
MODULE NO: 3

S.No
WRT
1 Answer the following questions. 8
a. What is an array? What are the disadvantages of an
array? Discuss.
b. Can arrays be passed to functions? Justify your answer.

2 What is an array variable and how it is different from ordinary 8


variable. Briefly describe about the declaration of array in C
with an example.

3 What is an array? How to initialize, accessing, and print the 8


array elements?

4 a. What is an array? What are the applications of an array? 8


Discuss.
b. Can arrays be passed to functions? Justify your answer.

5 How do you create two-dimensional arrays in C? Explain with 8


an example. How to initialize 1D and 2D arrays?

6 Write a C program to add two 2-dimensional arrays using the 8


concept of arrays as function arguments.

7 Write a program to print array of integers of size 20. Explain the 8


drawbacks of linear arrays in detail.

8 Write a C program to calculate sum and average of array 8


elements?

9 Write a C program to read in an array of integers. Instead of 8


using subscripting, however, employ an integer pointer that
points to the elements currently being read in, and which is

1
incremented each time.

10 What is an Array? Explain accessing and storing of elements in 8


one and two dimensional array.

What is an array? What are the disadvantages of an array? 4


Discuss.

Can arrays be passed to functions? Justify your answer. 4

What is an Array? Explain accessing and storing of elements in 4


one and one dimensional array briefly.

Briefly describe about the declaration of array in C with an 4


example

What is an array? How to initialize the array elements? 4

What is an array? How to access and print the array elements? 4

How do you create two-dimensional arrays in C? Explain with 4


an example

Write a C program to declare a two 2-dimensional array and take 4


input using scanf() function?

You might also like