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 return in c programming?
Explain with the aid of an example why arrays of structures don’t provide an efficient representation when it comes to adding and deleting records internal to the array.
Difference between macros and inline functions? Can a function be forced as inline?
What are the different types of data structures in c?
What do you mean by keywords in c?
What are the applications of c language?
What are data structures in c and how to use them?
What is the function of multilevel pointer in c?
Design a program which assigns values to the array temperature. The program should then display the array with appropriate column and row headings.
What are types of structure?
What is the difference between if else and switchstatement
How to get string length of given string in c?
Write a program to print all permutations of a given string.
What is the explanation for cyclic nature of data types in c?
What happens if you free a pointer twice?