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 |
1. Can we use the for loop this way? for(;i>5;) 2. What is the use of pointers? 3. what is array of pointer? 4. What is the difference between file and database? 5. Define data structure?
how to print "hai" in c?
difference between i++* and *++i
struct abc { unsigned int a; char b; float r; }; struct xyz { int u; struct abc tt; }ww; ww = (struct xyz*)malloc(sizeof(struct xyz)); will the memory be allocated for the inner structure also?
What is the proper way of these job Tell me about there full work
What is the most efficient way to count the number of bits which are set in a value?
write a program to find the largest and second largest integer from an array
what is the value of b if a=5; b=++a + ++a
31 Answers Infosys, TCS, Tech Mahindra,
what is the difference between #include<> and #include”…”?
How to write a code for reverse of string without using string functions?
What is conio h in c?
What is enumerated data type in c?