IS STRUCTURES CAN BE USED WITHIN AN ARRAY?

Answer Posted / shruti

yesss.

we do used structures within arrays..

struct student
{
char name[20];
int roll_no;
}s[10]

this is array of structures..

we use "."(dot) operator to access the element
s[i].name = ""
s[i].roll_no = ...

Is This Answer Correct ?    2 Yes 1 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

Why doesnt the call scanf work?

950


What is sizeof array in c?

817


Explain 'far' and 'near' pointers in c.

928


What are the types of arrays in c?

880


Which header file should you include if you are to develop a function which can accept variable number of arguments?

1099


What is the use of ?

845


What is a MAC Address?

860


What is use of null pointer in c?

775


In c programming write a program that will print 10 multiples of 3 except 15,18,21 using looping

1231


How can I access an I o board directly?

869


What is a good data structure to use for storing lines of text?

869


What are qualifiers and modifiers c?

773


Compare and contrast compilers from interpreters.

936


What is this pointer in c plus plus?

836


What is the method to save data in stack data structure type?

884