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 does a pointer variable always consist of?
Write a programme using structure that create a record of students. The user allow to add a record and delete a record and also show the records in ascending order.
What is infinite loop?
What does the function toupper() do?
What is character set?
Explain about the constants which help in debugging?
What is the difference between union and anonymous union?
using for loop sum 2 number of any 4 digit number in c language
Write a program which returns the first non repetitive character in the string?
What is substring 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 the use of pragma in embedded c?
how to create duplicate link list using C???
What is masking?
Do array subscripts always start with zero?