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


Please Help Members By Posting Answers For Below Questions

When I tried to go into a security sites I am denied access and a message appeared saying 'applet not initialize'. How can I rectify this problem.

1530


Explain what is the use of a semicolon (;) at the end of every program statement?

733


What is clrscr ()?

637


How is actual parameter different from the formal parameter?

591


In a switch statement, what will happen if a break statement is omitted?

602






What would happen to X in this expression: X += 15; (assuming the value of X is 5)

1297


Why ca not I do something like this?

585


What is calloc in c?

661


how to make a scientific calculater ?

1565


Is array a primitive data type in c?

577


Write a program to print ASCII code for a given digit.

688


What is openmp in c?

612


Where does the name "C" come from, anyway?

643


How can variables be characterized?

1650


#include { printf("Hello"); } how compile time affects when we add additional header file .

1424