Answer Posted / vikesh
int *a[5] means that there are 5 integer pointers[which
store adresess of only integers] whose adresses are in
continous locations and each pointer name is accesed by *a
[0],*a[1]....*a[4].for example
a[0]=n means a[0] points to n, a[1]=p means a[1] points to
p.[where n and p are integers]Let the adress of n and p be
some 625 and 254 respectively. then a[0] will hold 625
whose adress is(assume)1000 and a[1]will hold 254 whose
adress is 1002.similarly the a[2] will hold some adress(if
u make it to point) with its adress 1004 and a[3] will hold
some others adress with its adress 1006 and a[4] will hold
some others adress with its adress 1008.
Is This Answer Correct ? | 26 Yes | 1 No |
Post New Answer View All Answers
Write a C program to help a HiFi’s Restaurant automate its breakfast billing system. Your assignment should implement the following items: a. Show the customer the different breakfast items offered by the HiFi’s Restaurant. b. Allow the customer to select more than one item from the menu. c. Calculate and print the bill to the customer. d. Produce a report to present your complete program and show more sample output. Assume that the HiFi’s Restaurant offers the following breakfast menu: Plain Egg $2.50 Bacon and Egg $3.45 Muffin $2.20 French Toast $2.95 Fruit Basket $3.45 Cereal $0.70 Coffee $1.50 Tea $1.80
Why is sizeof () an operator and not a function?
Can you assign a different address to an array tag?
What are 'near' and 'far' pointers?
Explain high-order bytes.
What is the use of ?: Operator?
What is a const pointer in c?
When is a null pointer used?
What is atoi and atof in c?
What is define directive?
What is scanf_s in c?
What's the right way to use errno?
What is .obj file in c?
Where we use clrscr in c?
Explain the use of function toupper() with and example code?