How pointers are declared?



How pointers are declared?..

Answer / Rohit Pant

"To declare a pointer in C, you use the asterisk (*) symbol before the variable name. For example, int *ptr; declares ptr as a pointer to an integer. To initialize a pointer, you can assign it the address of another variable or constant."

Is This Answer Correct ?    0 Yes 0 No

Post New Answer

More C Interview Questions

Can you mix old-style and new-style function syntax?

1 Answers  


how does a general function , that accepts an array as a parameter, "knows" the size of the array ? How should it define it parameters list ?

2 Answers   Patni, TCS,


Explain what are header files and explain what are its uses in c programming?

1 Answers  


Q.1 write aprogram to stack using linklist o insert 40 items? Q.2 write a program to implement circular queue with help of linklist?

1 Answers   TCS,


What is the significance of scope resolution operator?

1 Answers   Agilent, ZS Associates,


what is unsigened char and what is the difference from char

2 Answers  


coding for Fibonacci.?

1 Answers  


where do we use structure pointer?

1 Answers  


What is structure and union in c?

1 Answers  


Is an array parameter is always "by reference" ?

1 Answers  


How pointers are declared?

1 Answers  


Why do we use null pointer?

1 Answers  


Categories