twitterfacebookgoogle plusrss feedemail

C Program For Pointer


Pointer is a variable that stores the address of another variable. It dynamically allocates the memory. 

Just copy the bellow code and paste it to your TurboC software. And then run the program. You can download the TurboC software.





Source Code...


#include <stdio.h>
#include <conio.h>

void main()
{
        int *ptr, p;
        clrscr();
p = 77;      
        ptr = &p;     /* to assign the address of p is to ptr (pointer) */
        printf("%d", *ptr);  /* to show the value of p using ptr variable */
        getch();
}


Output...

77


Kindly Share This Post »»

Author Box by ENGINEER's TIPS

About the Author

I am Arpan Paramanik From India and i am the founder of the blog ENGINEER's TIPS.I Very Much interest in blogging by reading articles online. Mine thirst for learning latest web technologies like HTML, CSS, C, C++ and JavaScript equipped me with an art of web designing. I am now a good designer…’

0 comments:

Post a Comment

 

Wikipedia Search

Search results

Total Pageviews

Recent Comments

If you are facing any problem in this site, or any link is not working then please

Contact us

Name

Email *

Message *

 
To Top To Bottom Auto Scroll Stop Scroll