what is difference between array and structure?
Answer Posted / chaudhary paresh
- Array elements are homogeneous. Structure elements are of
different data type.
- Array allocates static memory and uses index / subscript
for accessing elements of the array. Structures allocate
dynamic memory and uses (.) operator for accessing the
member of a structure.
- Array is a pointer to the first element of it. Structure
is not a pointer
- Array element access takes less time in comparison with
structures.
| Is This Answer Correct ? | 0 Yes | 0 No |
Post New Answer View All Answers
to print the salary of an employee according to follwing calculation: Allowances:HRA-20% of BASIC,DA-45% of BASIC,TA-10%. Deductions:EPF-8% of BASIC,LIC-Rs.200/-Prof.Tax:Rs.200/- create c language program?
Can we declare variable anywhere in c?
What is the use of static variable in c?
What is variable declaration and definition in c?
Explain high-order and low-order bytes.
How do I swap bytes?
Why n++ execute faster than n+1 ?
What is the function of multilevel pointer in c?
Write a code to achieve inter processor communication (mutual exclusion implementation pseudo code)?
What does %p mean c?
What language is lisp written in?
The % symbol has a special use in a printf statement. How would you place this character as part of the output on the screen?
Why do we use & in c?
what is different between auto and local static? why should we use local static?
please help me..... please codes and flowchart plz turbo c lang po yan.....please asap response... 3. Make an astrology program. The user types in his or her birthday (month, day, and year as integer), and the program responds with the user’s zodiac sign, horoscope, and other information related to it. If the user’s birth year falls into a leap year, your program should display an appropriate message for it. NOTES: Conditional Statements: it should be with graphics