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
Tell me what is the purpose of 'register' keyword in c language?
What will the code below print when it is executed? int x = 3, y = 4; if (x = 4) y = 5; else y = 2; printf ("x=%d, y=%d ",x,y);
#include
What is the size of structure pointer in c?
Explain how do you generate random numbers in c?
Explain the use of #pragma exit?
What are the uses of a pointer?
hi any body pls give me company name interview conduct "c" language only
What type is sizeof?
List out few of the applications that make use of Multilinked Structures?
Can we increase size of array in c?
Which header file should you include if you are to develop a function which can accept variable number of arguments?
1. Write a function to display the sum of two numbers in the following ways: By using (i) pass by value (ii) pass by address a. function with argument and with return value b. function with argument and without return value c. without argument , with return value d. without argument , without return value Note: Use pass by address.
What does c in a circle mean?
what is the height of tree if leaf node is at level 3. please explain