why we use pointer in c

Answer Posted / ram

reference to the address of the variable

Is This Answer Correct ?    11 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

find out largest elemant of diagonalmatrix

1889


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

874


What is typeof in c?

772


What are control structures? What are the different types?

854


What is the mean of function?

866


What is volatile keyword in c?

783


Is there sort function in c?

794


How can I do peek and poke in c?

852


What are the differences between Structures and Arrays?

872


What math functions are available for integers? For floating point?

870


main() { struct s1 { char *str; struct s1 *ptr; }; static struct s1 arr[] = { {"Hyderabad",arr+1}, {"Bangalore",arr+2}, {"Delhi",arr} }; struct s1 *p[3]; int i; < BR> for(i=0;i<=2;i++) p[i] = arr[i].ptr; printf("%s ",(*p)->str); printf("%s ",(++*p)->str); printf("%s ",((*p)++)->str); }

1153


What is class and object in c?

819


How do you print only part of a string?

789


Write a Program to find whether the given number or string is palindrome.

987


What is the difference between int main and void main in c?

834