what is difference between array and structure?
Answer Posted / sajid ali khan
ARRAYS: -
An array may contain a number of items all of the SAME TYPE,
including user-defined types such as structures (see above).
Structure: -
In the C programming language, a structure may contain
MULTIPLE DATA TYPES, also including arrays of those types,
and the structure becomes a USER-DEFINED type.
| Is This Answer Correct ? | 14 Yes | 7 No |
Post New Answer View All Answers
What are global variables and explain how do you declare them?
What is size of union in c?
What are pointers? What are stacks and queues?
What is a pointer and how it is initialized?
What is function what are the types of function?
What is the value of uninitialized variable in c?
What does c mean in basketball?
Write a programme using structure that create a record of students. The user allow to add a record and delete a record and also show the records in ascending order.
What does struct node * mean?
Write a C program that will accept a hexadecimal number as input and then display a menu that will permit any of the following operations to be carried out: Display the hexadecimal equivalent of the one's complement. (b) Carry out a masking operation and then display the hexadecimal equivalent of the result. (c) Carry out a bit shifting operation and then display the hexadecimal equivalent of the result. (d) Exit. If the masking operation is selected, prompt the user lor the type of operation (bitwise and, bitwise exclusive or, or bitwise or) and then a (hexadecimal) value for the mask. If the bit shifting operation is selected. prompt the user for the type of shift (left or right), and then the number of bits. Test the program with several different (hexadecimal) input values of your own choice.
Explain how do you use a pointer to a function?
Why doesnt that code work?
What is the purpose of the preprocessor directive error?
What is the use of putchar function?
Explain what will the preprocessor do for a program?