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
Write a Program to accept different goods with the number, price and date of purchase and display them
Devise a program that inputs a 3 digit number n and finds out whether the number is prime or not. Find out its factors.
Explain what is the most efficient way to store flag values?
What is the scope of an external variable in c?
#include show(int t,va_list ptr1) { int a,x,i; a=va_arg(ptr1,int) printf(" %d",a) } display(char) { int x; listptr; va_star(otr,s); n=va_arg(ptr,int); show(x,ptr); } main() { display("hello",4,12,13,14,44); }
What is && in c programming?
hw can we delete an internal node of binary search tree the internal node has child node..plz write progarm
What are the types of data files?
which of the following shows the correct hierarchy of arithmetic operations in C a) (), **, * or/,+ or - b) (),**,*,/,+,- c) (),**,/,*,+,- d) (),/ or *,- or +
What is %s and %d in c?
"C" language developed by "Dennis Ritchie" at AT & T. his remarks are a) too general, too abstract b) could deal with only specific problems c) lost generality of BCPL and B restored d) no remarks
What does stand for?
What is array of structure in c?
What is page thrashing?
What is difference between structure and union in c programming?