IS STRUCTURES CAN BE USED WITHIN AN ARRAY?
Answers were Sorted based on User's Feedback
Answer / venugopal
YES ,THEY CAN BE,BECAUSE ARRAY CAN HOLD SIMILAR DATA
TYPED ONES,WE ARE USING ONLY STRUCTURE VARIABLES
THEMSELVES.IT WILL BE POSSIBLE.
Is This Answer Correct ? | 5 Yes | 0 No |
Answer / e-mail
yes. structures can be used within an array. variables are
declared in an arrays in structures.
Is This Answer Correct ? | 2 Yes | 1 No |
Answer / biranchi parida
generally in turbo c++ 3.0 to above version it can't
possible but possible if we declared float linking point
declaration
in such way globally after header file
float a,*b;
b=&a;
after this declaration structure can take array
Is This Answer Correct ? | 0 Yes | 0 No |
Answer / swamy s t
No. Because arrays are homogeneous datatype and
structures are heterogeneous datatype. So we cann't
Is This Answer Correct ? | 0 Yes | 1 No |
How important is structure in life?
What is the advantage of an array over individual variables?
Which of the following about the C comments is incorrect ? a.commentscan go over multiple lines b.comments can start any where in the line c.a line can contain comments with out any language statements d.comments can occur within comments
What language is c written?
What is n in c?
Given an array of length N containing integers between 1 and N, determine if it contains any duplicates.
which of the following statements is incorrect a.typedef struct new{ int n1; char n2; } DATA; b.typedef struct { int n3; char *n4; }ICE; c.typedef union { int n5; float n6; } UDT; d.#typedef union { int n7; float n8; } TUDAT;
What is the right type to use for boolean values in c? Is there a standard type? Should I use #defines or enums for the true and false values?
for example user gives input as " 20 or 20.0 or rs 20.0 or 20.00 or rs20 and so .. on " and the output should be stored as " rs.20.00 " in a variable
Explain how can I make sure that my program is the only one accessing a file?
ATM machine and railway reservation class/object diagram
How can I automatically locate a programs configuration files in the same directory as the executable?