IS STRUCTURES CAN BE USED WITHIN AN ARRAY?

Answers were Sorted based on User's Feedback



IS STRUCTURES CAN BE USED WITHIN AN ARRAY?..

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

IS STRUCTURES CAN BE USED WITHIN AN ARRAY?..

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

IS STRUCTURES CAN BE USED WITHIN AN ARRAY?..

Answer / sathish

Yes... Sure...

Is This Answer Correct ?    1 Yes 0 No

IS STRUCTURES CAN BE USED WITHIN AN ARRAY?..

Answer / 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

IS STRUCTURES CAN BE USED WITHIN AN ARRAY?..

Answer / mathan

no

Is This Answer Correct ?    1 Yes 1 No

IS STRUCTURES CAN BE USED WITHIN AN ARRAY?..

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

IS STRUCTURES CAN BE USED WITHIN AN ARRAY?..

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

Post New Answer

More C Interview Questions

What are the ways to a null pointer can use in c programming language?

0 Answers  


DIFFERNCE BETWEEN THE C++ AND C LANGUAGE?

2 Answers   Wipro,


diff between exptected result and requirement?

0 Answers   HCL,


what are the different storage classes in c?

0 Answers   TCS,


what is bit rate & baud rate? plz give wave forms

0 Answers  






What are bit fields? What is their use?

2 Answers   Adobe,


What are the benefits of c language?

0 Answers  


What functions are used in dynamic memory allocation in c?

0 Answers  


What are the advantages of using new operator as compared to the function malloc ()?

0 Answers   NIIT,


Which operators cannot be overloaded a) Sizeof b) .* c) :: d) all of the above

0 Answers  


What does %2f mean in c?

0 Answers  


Describe for loop and write a c program to sum the series X + x2/2! + x3 /3! + …….. up to fifteen terms.

2 Answers  


Categories