what is difference between array and structure?
Answer Posted / kirankumar
Array is used to represent a group of data items that
belongs to the same type or kind.
int a[5];
i.e a[0],a[1],a[2],a[3],a[4].
all a values are integer types.
If we want to represent data items of different types using
a single name is called strucute.
Ex:struct book
{
char title[20];
int pages;
float price;
};
| Is This Answer Correct ? | 0 Yes | 3 No |
Post New Answer View All Answers
What do you mean by dynamic memory allocation in c?
What is a macro?
Can you please explain the difference between syntax vs logical error?
how to print electricity bill according to following charges first 100 units -1rs per unit for next 200 units-1.50 rs per unit without using conditions
write a c program to print the next of a particular no without using the arithmetic operator or looping statements?
When should the const modifier be used?
How many types of arrays are there in c?
Explain what’s a signal? Explain what do I use signals for?
What is output redirection?
What does 4d mean in c?
Difference between Function to pointer and pointer to function
What is the use of #include in c?
What is a static function in c?
Is multithreading possible in c?
can anyone suggest some site name..where i can get some good data structure puzzles???