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
Why doesnt the call scanf work?
What is sizeof array in c?
Explain 'far' and 'near' pointers in c.
What are the types of arrays in c?
Which header file should you include if you are to develop a function which can accept variable number of arguments?
What is the use of ?
What is a MAC Address?
What is use of null pointer in c?
In c programming write a program that will print 10 multiples of 3 except 15,18,21 using looping
How can I access an I o board directly?
What is a good data structure to use for storing lines of text?
What are qualifiers and modifiers c?
Compare and contrast compilers from interpreters.
What is this pointer in c plus plus?
What is the method to save data in stack data structure type?