How do I declare a pointer to an array?

Answer Posted / guest

int a[10];
int *ptr=a[0];

Is This Answer Correct ?    1 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

the maximum length of a character constant can be a) 1 character b) 8 characters c) 256 chaacters d) 125 characters

1806


What is nested structure?

578


What is difference between structure and union in c programming?

575


How do you search data in a data file using random access method?

840


how to execute a program using if else condition and the output should enter number and the number is odd only...

1661






Find duplicates in a file containing 6 digit number (like uid) in O (n) time.

2616


Should a function contain a return statement if it does not return a value?

601


what is uses of .net

1279


What is a buffer in c?

578


What does p mean in physics?

589


What is the scope of local variable in c?

582


Differentiate between full, complete & perfect binary trees.

675


What are the types of bitwise operator?

667


Write a program to input the price of 1 burger and the number of burgers eaten by a group of friends .print the total amount to be paid by the group?

580


What is difference between scanf and gets?

616