Explain about pointer in C?

Asked by Last Modified  

14 Answers

Follow 0
Answer

Please enter your answer

Home Tutor

A pointer is variable which can store the address of the another variable.. That is if you created any aaary you want to point the address of that data to other we can use
Comments

M.Tech in Computer Science with 7.5 yrs of Teaching Experience as Asst. Professor

A pointer is a variable which holds an address of another variable. Ordinary variable holds a value of that data type where as the pointer holds the address of another variable of same data type i.e. int x =10. means x is a variable which holds the value 10 and stored at some location 1000. int *ptr...
read more
A pointer is a variable which holds an address of another variable. Ordinary variable holds a value of that data type where as the pointer holds the address of another variable of same data type i.e. int x =10. means x is a variable which holds the value 10 and stored at some location 1000. int *ptr means ptr is a pointer which can hold the address of another variable of int. let ptr=&x. so ptr will have the address of x i.e. 1000 read less
Comments

Computer Teacher

A pointer is a variable which contains the address in memory of another variable. We can have a pointer to any variable type. The unary or monadic operator & gives the ``address of a variable''. The indirection or dereference operator * gives the ``contents of an object pointed to by a pointer''.
Comments

Tutor

Pointer is a variable which stores the address of some other memory location where the actual data value is.
Comments

Tutor

In Short: A Pointer is a variable. A pointer stores an "address". An "address" is denoted by a hexadecimal value. An "address" indicates the "memory location" where another variable's data is stored. So it is said that a pointer variable "refers to" another variable's memory location.
Comments

Certified C/C++/Core & Advance Java/Python Trainer

Its a special type of variable which holds the memory address of some other variable. As you would be knowing , every variable you create or declare has got some address in RAM. so if you declared a variable X like int X; //this will allocate 2 bytes of memory in RAM and an address of that allocated...
read more
Its a special type of variable which holds the memory address of some other variable. As you would be knowing , every variable you create or declare has got some address in RAM. so if you declared a variable X like int X; //this will allocate 2 bytes of memory in RAM and an address of that allocated memory area would be there.also a name X has been associated with that memory area Now you have 2 options to access that memory area: a) we can access that memory area using the name X associates with that memory area b) we can access that memory area using the memory address associated with that memory area. For the second approach , (b) we need to first store the memory address of X in some variable. Now comes the requirement of a POINTER.(As a pointer variable can store the memory address) int * ptr; //declaration of a pointer variable ptr=&X;//assigning the memory address of variable X to pointer variable ptr. Hope this helps. read less
Comments

Home tutor for Class 1-9 & for polytechnic Student for ETC & E&tc branch

A pointer is a variable whose value is the address of another variable, i.e., direct address of the memory location. Like any variable or constant, you must declare a pointer before using it to store any variable address. The general form of a pointer variable declaration is ? type *var-name; Here,...
read more
A pointer is a variable whose value is the address of another variable, i.e., direct address of the memory location. Like any variable or constant, you must declare a pointer before using it to store any variable address. The general form of a pointer variable declaration is ? type *var-name; Here, type is the pointer's base type; it must be a valid C data type and var-name is the name of the pointer variable. The asterisk * used to declare a pointer is the same asterisk used for multiplication. However, in this statement the asterisk is being used to designate a variable as a pointer. read less
Comments

Be Good Do Good

pointer is a variable which stores the address of another variable
Comments

A pointer is a variable which contains the address in memory of another variable. We can have a pointer to any variable type.
Comments

Trainer

A pointer is a variable whose value is the address of another variable, i.e., direct address of the memory location. Like any variable or constant, you must declare a pointer before using it to store any variable address.
Comments

View 12 more Answers

Related Questions

What is engineering drawing?
An engineering drawing, a type of technical drawing, is used to fully and clearly define requirements for engineered items
Barge Nandkumar Hanamant
i want programming knowledge
For programming knowledge only and starting of programming I will suggest Let us C by Yashwant Kanetkar. For deep knowledge you can take other book also.
Harsha
Is force a scalar quantity?
Force is a vector quantity
Sample
0 0
7
What course should I take after doing diploma in plastic engineering?
Those who complete the course can go with further study programs such as B. Tech or B.E in Plastic Technology/engineering. Higher education programs such as M. Tech in plastic technology enable the candidates...
Kunj

Now ask question in any of the 1000+ Categories, and get Answers from Tutors and Trainers on UrbanPro.com

Ask a Question

Related Lessons


Circular motion
Circular motion is rotation along a circle: a circular path or a circular orbit. It can be uniform, that is, with constant angular rate of rotation, or non-uniform, that is, with a changing rate of rotation. Examples...

Temperature Part 1
A

Arnab Bhattacharjee

0 0
0

Strain Energy Stored Due To Axial Loading
Let us assume a member with uniform cross section A and of lenth l, be subjected to external axial load W as shown in the figure. As the load is gradually applied the load is incresed from 0 to W, due...

Electronic Discussion Groups (EDGs)
The AP electronic discussion groups (EDGs) are moderated, Web-based groups that allow users to post messages online to be viewed by the entire group. Messages can also be sent and received via e-mail....

Recommended Articles

E-learning is not just about delivering lessons online. It has a much broader scope that goes beyond manual paper or PowerPoint Presentations. To understand the reach of E-learning and how the whole process works in developing the Educational system, we will discuss a few points here. Let us find out how this new learning...

Read full article >

While schools provide formal education to the children, the home is where they start learning about things informally. Parents think that schools will take the initiative to educate their children. Well, this is partially true, as parents also play an essential role in bringing up their child. For the development of particular...

Read full article >

With the mushrooming of international and private schools, it may seem that the education system of India is healthy. In reality, only 29% of children are sent to the private schools, while the remaining head for government or state funded education. So, to check the reality of Indian education system it is better to look...

Read full article >

Quality education does not only help children to get a successful career and life, but it also hugely contributes to society. The formal education of every child starts from school. Although there are numerous schools, parents find it challenging to choose the right one that would fit their child. It is difficult for them...

Read full article >

Looking for Engineering Diploma Tuition ?

Learn from the Best Tutors on UrbanPro

Are you a Tutor or Training Institute?

Join UrbanPro Today to find students near you