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

write a program to arrange the contents of a 1D array in ascending order

4 Answers  


How can I invoke another program from within a C program?

8 Answers  


Write a function to find the area of a triangle whose length of three sides is given

2 Answers  


how to find sum of 5 digits in C?

4 Answers  


write a program to display numbers from 1 to 10 and 10 to 1?

2 Answers  






How many levels of pointers can you have?

0 Answers  


what is diffrence between string and character array?

1 Answers  


main() { printf(5+"good morning"); printf("%c","abcdefgh"[4]); }the o/p is morning and e...how someone explain

1 Answers  


How do we print only part of a string in c?

0 Answers  


What is pre-emptive data structure and explain it with example?

0 Answers  


Write a function that accepts two numbers,say a and b and makes bth bit of a to 0.No other bits of a should get changed.

2 Answers   Scientific Atlanta, Wipro,


diff between exptected result and requirement?

0 Answers   HCL,


Categories