what is difference between array and structure?
Answer Posted / sreejith av
ARRAY:
An array is defined as a group of related data items stored by means of a single variable name.
STRUCTURE:
Structure is defined as a data type to represent several different types of data with a single name.
DIFFERENCE BETWEEN ARRAYS AND STRUCTURES:
1.All data in a array should be of same data type.But in structures data can be of different data types.
2.Individual entries in an array are called elements.But in structure individual entries are called members.
| Is This Answer Correct ? | 2 Yes | 0 No |
Post New Answer View All Answers
What are the c keywords?
Explain what is a pragma?
Explain function?
Explain about the functions strcat() and strcmp()?
Why should I use standard library functions instead of writing my own?
What is static identifier?
Define Array of pointers.
which of the following statement is wrong a) mes=123.56; b) con='T'*'A'; c) this='T'*20; d) 3+a=b;
Can we change the value of static variable in c?
Write a program to print “hello world” without using semicolon?
what does static variable mean?
Why static is used in c?
Explain the use of #pragma exit?
Write a client and server program in C language using UDP, where client program interact with the Server as given below: i) The client begins by sending a request to send a string of 8 characters or series of 7 numbers, the server sends back a characters or numbers as per the request of the client. ii) In case of series of 7 numbers: The client sends a multiplication of numbers, to the server. iii) In case of a string of 8 characters: The client sends a reverse order of string to the server.. iv) Server will send an acknowledgment to the client after receiving the correct answer
Why header files are used?