How is pointer initialized in c?



How is pointer initialized in c?..

Answer / Shagufta Pravin

A pointer is initialized by assigning it the address of a variable, typically using an & operator. For example: int x = 5; int* p = &x;

Is This Answer Correct ?    0 Yes 0 No

Post New Answer

More C Interview Questions

what is the output of below int n=10; (n++)++; printf("%d",n);

3 Answers  


What are global variables and how do you declare them?

1 Answers  


Is c an object oriented programming language?

1 Answers  


What is a scope resolution operator in c?

1 Answers  


What is a class?

3 Answers  


Method Overloading exist in c ?

3 Answers   Wipro,


Tell me what are bitwise shift operators?

1 Answers  


what is the difference between postfix and prefix unary increment operators?

3 Answers  


what is the importance of spanning tree?

0 Answers  


write a program in c language that uses function to locate and return the smallest and largest integers in an array,number and their position in the array. it should also find and return the range of the numbers , that is , the difference between the largest number and the smallest.

1 Answers  


What is merge sort in c?

1 Answers  


what is bitwise operator?

1 Answers   IBM,


Categories