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 the equivalent code of the following statement in WHILE LOOP format?
Which one would you prefer - a macro or a function?
What does. int *x[](); means ?
where are auto variables stored? What are the characteristics of an auto variable?
What is a loop?
What are the advantages and disadvantages of a heap?
What is a lookup table in c?
Can I initialize unions?
Explain what is a stream?
code for find determinent of amatrix
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.
What is a null string in c?
hi friends how r u as soon in satyam my interview is start but i m very confusued ta wat i do plz help me frndz wat can i do plz tell me some question and answers related with "C" which r asked in the interview .
What is pointer to pointer in c?
When do we get logical errors?