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 a char in c?
What are the 5 types of organizational structures?
Why do we use static in c?
Explain what is the difference between a string and an array?
Explain how do you determine the length of a string value that was stored in a variable?
What is the value of h?
general for is %wd,f-d; in this system "w" means a) 'w' represent total width of digits b) 'w' represent width which includes the digits before,after decimal place and the decimal point c) 'w' represent width which includes the digits before only d) 'w' represent width after decimal place only
Write a C Program That Will Count The Number Of Even And Odd Integers In A Set using while loop
FILE PROGRAMMING
What are the two forms of #include directive?
Explain what are header files and explain what are its uses in c programming?
What is the size of empty structure in c?
Explain the difference between malloc() and calloc() in c?
Is struct oop?
What is function prototype in c language?