How do I declare a pointer to an array?

Answer Posted / shruti

you do not need to declare a pointer to any array..

an array itself is a constant pointer..

a[10] is equivalent to *a.

Is This Answer Correct ?    15 Yes 4 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

Write a function expand(s1,s2) that expands shorthand notations like a-z in the string s1 into the equivalent complete list abc...xyz in s2 . Allow for letters of either case and digits, and be prepared to handle cases like a-b-c and a-z0-9 and -a-z. z-a:zyx......ba -1-6-:-123456- 1-9-1:123456789987654321 a-R-L:a-R...L a-b-c:abbc

5061


which type of aspect you want from the student.

1704


Is that possible to store 32768 in an int data type variable?

694


a) Identify the following declarations. Ex. int i (integer variable) float a[l0](array of 10 real nos) int (*f())() void *f int (*f()) [] void *f int f[] [] [] char *(*f) () int (*f[]) [] float(*f) [] [] float **f int ******f

1589


the process of defining something in terms of itself is called (or) in C it is possible for the functions to call themselves. A function called a) nested function b) void function c) recursive function d) indifinite function

764






Write a program to swap two numbers without using the third variable?

602


What is printf () in c?

582


write a program in C that prompts the user for today's date,tomorrow's date and display the results.Use structures for today's date,tomorrow's date and an array to hold the days for each month of the year.

4992


Explain what is #line used for?

610


Difference between macros and inline functions? Can a function be forced as inline?

716


In a switch statement, explain what will happen if a break statement is omitted?

641


When should I declare a function?

627


Explain what standard functions are available to manipulate strings?

614


Is file a keyword in c?

505


Ow can I insert or delete a line (or record) in the middle of a file?

579