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 is the difference between printf and scanf )?
Explain the bubble sort algorithm.
How reliable are floating-point comparisons?
write a program using linked list in which each node consists of following information. Name[30] Branch Rollno Telephone no i) Write the program to add information of students in linked list
With the help of using classes, write a program to add two numbers.
Which operators cannot be overloaded a) Sizeof b) .* c) :: d) all of the above
What is the difference between fread and fwrite function?
Why is it usually a bad idea to use gets()? Suggest a workaround.
How arrays can be passed to a user defined function
Explain continue keyword in c
which is conditional construct a) if statement b) switch statement c) while/for d) goto
On most computers additional memory that is accessed through an adapter of feature card along with a device driver program. a) user memory b) conventional memory c) expandedmemory d) area
What is 2c dna?
why we wont use '&' sing in aceesing the string using scanf
Differentiate call by value and call by reference?