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

what is stack , heap ,code segment,and data segment

2224


What are the features of c languages?

632


How would you rename a function in C?

623


Who developed c language and when?

587


What is a file descriptor in c?

562






What is the description for syntax errors?

616


What is pass by value in c?

597


Can you explain the four storage classes in C?

645


Is javascript based on c?

595


Why #include is used in c language?

602


When should the volatile modifier be used?

688


What's the difference between constant char *p and char * constant p?

659


the 'sizeof' operator reported a larger size than the calculated size for a structure type. What could be the reason?

567


What is indirection? How many levels of pointers can you have?

660


write a c program to find the sum of five entered numbers using an array named number

1618