Answer Posted / anoop.a.jawalkar
An Array is a fixed-size sequenced of elements of the same
data type. It is simply a grouping of like-type data. In
its simplest form, an array can be used to represent a list
of number, or a list of names.
Some useful eg:.
* List of temperatures recorded every hour in a day,or a
month, or a year.
* list of employees in an organization.
* List of products and their cost sold by a store.......
| Is This Answer Correct ? | 0 Yes | 0 No |
Post New Answer View All Answers
#include main() { int *p, *c, i; i = 5; p = (int*) (malloc(sizeof(i))); printf(" %d",*p); *p = 10; printf(" %d %d",i,*p); c = (int*) calloc(2); printf(" %d ",*c); }
List the variables are used for writing doubly linked list program.
Why is it that not all header files are declared in every C program?
What are comments and how do you insert it in a C program?
What are the two types of structure?
typedef struct{ char *; nodeptr next; } * nodeptr ; What does nodeptr stand for?
Do variables need to be initialized?
what is the difference between 123 and 0123 in c?
How do we declare variables in c?
Are c and c++ the same?
What is the condition that is applied with ?: Operator?
What is anagram in c?
List the difference between a 'copy constructor' and a 'assignment operator' in C?
Tell us two differences between new () and malloc ()?
Write a program to replace n bits from the position p of the bit representation of an inputted character x with the one's complement. Method invertBit takes 3 parameters x as input character, p as position and n as the number of positions from p. Replace n bits from pth position in 8 bit character x. Then return the characters by inverting the bits.