what is difference between array and structure?
Answer Posted / kirankumar
Array takes data types of same kind where as structure takes
any kind.
Ex:int n[5];/* one d array
int n[10][10];/* two d array
int n[10][10][10];/* multi d array or jagged array
Structure takes following form:
struct class
{
cahr name;
int marks;
float sbuject[3];
}stuent[100];
| Is This Answer Correct ? | 1 Yes | 1 No |
Post New Answer View All Answers
Explain what are the standard predefined macros?
Can you define which header file to include at compile time?
In c programming, explain how do you insert quote characters (? And ?) Into the output screen?
Explain what is the difference between functions abs() and fabs()?
Is it better to use a pointer to navigate an array of values, or is it better to use a subscripted array name?
What is the difference between scanf and fscanf?
a linearly ordered set of data elements that have the same structure and whose order is preserved in storage by using sequential allocation a) circular b) ordinary c) array d) linear list
What are the types of pointers?
What type is sizeof?
What are the 3 types of structures?
What is a spanning Tree?
I heard that you have to include stdio.h before calling printf. Why?
Can variables be declared anywhere in c?
What is nested structure in c?
Why do we use & in c?