what is difference between array and structure?
Answer Posted / rajkumars
Array:Static memory allocation.
It uses the subscript to access the array elements.
Structure:Dynamic memory allocation.
It uses the dot(.)operator to access the structure
members.
| Is This Answer Correct ? | 460 Yes | 48 No |
Post New Answer View All Answers
Which is better oop or procedural?
write a program fibonacci series and palindrome program in c
What are the characteristics of arrays in c?
What are enums in c?
Explain what is gets() function?
Is it better to use malloc() or calloc()?
Explain 'bit masking'?
What is the use of typedef in c?
What is an example of structure?
What is difference between main and void main?
Is c is a low level language?
Can two or more operators such as and be combined in a single line of program code?
Is using exit() the same as using return?
Can math operations be performed on a void pointer?
the factorial of non-negative integer n is written n! and is defined as follows: n!=n*(n-1)*(n-2)........1(for values of n greater than or equal to 1 and n!=1(for n=0) Perform the following 1.write a c program that reads a non-negative integer and computes and prints its factorial. 2. write a C program that estimates the value of the mathematical constant e by using the formula: e=1+1/!+1/2!+1/3!+.... 3. write a c program the computes the value ex by using the formula ex=1+x/1!+xsquare/2!+xcube/3!+....