TECHNOLOGIES
FORUMS
JOBS
BOOKS
EVENTS
INTERVIEWS
Live
MORE
LEARN
Training
CAREER
MEMBERS
VIDEOS
NEWS
BLOGS
Sign Up
Login
No unread comment.
View All Comments
No unread message.
View All Messages
No unread notification.
View All Notifications
C# Corner
Post
An Article
A Blog
A News
A Video
An EBook
An Interview Question
Ask Question
Pointer in C Program
Krishna Rajput Singh
Jan 05
2016
Code
750
0
0
facebook
twitter
linkedIn
Reddit
WhatsApp
Email
Bookmark
expand
#include<stdio.h>
#include<conio.h>
main()
{
int
*x,y=30;
x=&y;
//the contents at x is the value of y
printf(
"The address of y is :\t%d\n"
,x,y);
// address of operator can be applied lvalue
printf(
"The contents of the addrss held in x are:\t%d\n"
,*x);
//*x gives the contents at the address
*x=20;
printf(
"The new value of y is:\t%d\n"
,y);
}
pointer in c language
C