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


Please Help Members By Posting Answers For Below Questions

Write a Program to accept different goods with the number, price and date of purchase and display them

5441


Devise a program that inputs a 3 digit number n and finds out whether the number is prime or not. Find out its factors.

663


Explain what is the most efficient way to store flag values?

692


What is the scope of an external variable in c?

564


#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); }

764






What is && in c programming?

674


hw can we delete an internal node of binary search tree the internal node has child node..plz write progarm

1631


What are the types of data files?

725


which of the following shows the correct hierarchy of arithmetic operations in C a) (), **, * or/,+ or - b) (),**,*,/,+,- c) (),**,/,*,+,- d) (),/ or *,- or +

1176


What is %s and %d in c?

588


"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

652


What does stand for?

590


What is array of structure in c?

594


What is page thrashing?

649


What is difference between structure and union in c programming?

565