How do I declare a pointer to an array?

Answer Posted / sureshreddy

data_type (*ptr)[];
ex: int (*ptr)[10];

pointer to arry of 10 elements

Is This Answer Correct ?    14 Yes 3 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

typedef struct{ char *; nodeptr next; } * nodeptr ; What does nodeptr stand for?

1066


To print the pattern 1 2 3 4 5 10 17 18 19 6 15 24 25 20 7 14 23 22 21 8 13 12 11 10 9

2181


When should a type cast be used?

573


In c programming, explain how do you insert quote characters (? And ?) Into the output screen?

757


any restrictions have on the number of 'return' statements that may be present in a function. a) no restriction b) only 2 return statements c) only 1 return statements d) none of the above

650






How many keywords are there in c?

586


Explain what is the difference between functions abs() and fabs()?

613


how can f be used for both float and double arguments in printf? Are not they different types?

602


What is structure data type in c?

562


What does 3 mean in texting?

604


#include int main(){ int i=10; int *ptr=&i; *ptr=(int *)20; printf("%d",i); return 0; } Output: 20 can anyone explain how came the output is 20

1255


What is signed and unsigned?

631


What is the sizeof () operator?

615


What are c identifiers?

621


Why does everyone say not to use scanf? What should I use instead?

678