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
what is stack , heap ,code segment,and data segment
What are the features of c languages?
How would you rename a function in C?
Who developed c language and when?
What is a file descriptor in c?
What is the description for syntax errors?
What is pass by value in c?
Can you explain the four storage classes in C?
Is javascript based on c?
Why #include is used in c language?
When should the volatile modifier be used?
What's the difference between constant char *p and char * constant p?
the 'sizeof' operator reported a larger size than the calculated size for a structure type. What could be the reason?
What is indirection? How many levels of pointers can you have?
write a c program to find the sum of five entered numbers using an array named number