Answer Posted / srsabariselvan
an array is a collection of same type of data.
for eg:
list of student name,collection of roll numbers.
each element has unique id(index).
Declaration:
data_type a[size];
a[index]=number;
Eg:
int a[10];
a[0]=2;
a[1]=3;
.
.
.
a[9]=22;
printf("%d",a[9]);
| Is This Answer Correct ? | 2 Yes | 0 No |
Post New Answer View All Answers
What is the sizeof () operator?
typedef enum { html, java, javascript, perl, cgi } lang;The above statement defines a : a) Union b) User defined type c) Enumerated variable d) none
Is it valid to address one element beyond the end of an array?
What is wrong in this statement?
how should functions be apportioned among source files?
An integer that indentifies the position of a data item in a sequence of data items a) value b) number c) index d) all of the above
Describe dynamic data structure in c programming language?
What are 'near' and 'far' pointers?
Write a program to maintain student’s record. Record should
not be available to any unauthorized user. There are three
(3) categories of users. Each user has its own type. It
depends upon user’s type that which kind of operations user
can perform. Their types and options are mentioned below:
1. Admin
(Search Record [by Reg. No or Name], View All Records,
Insert New Record, Modify Existing Record)
2. Super Admin
(Search Record [by Reg. No or Name], View All Records,
Insert New Record, Modify Existing Record, Delete Single Record)
3. Guest
(Search Record [by Reg. No or Name], View All Records)
When first time program runs, it asks to create accounts.
Each user type has only 1 account (which means that there
can be maximum 3 accounts). In account creation, following
options are required:
Login Name: <6-10 alphabets long, should be unique>
Password: <6-10 alphabets long, should not display
characters when user type>
Confirm Password:
How can I invoke another program or command and trap its output?
Do you know the difference between malloc() and calloc() function?
How are pointers declared in c?
Why do we use main function?
When do you not use the keyword 'return' when defining a function a) Always b) Never c) When the function returns void d) dfd
Which type of language is c?