tag:blogger.com,1999:blog-959939550345671470.post6310192609086995550..comments2024-03-24T12:51:18.535+05:30Comments on C programming Interview questions and answers: What is pointer in c programming?Priyanka kumarihttp://www.blogger.com/profile/08145649011863585828noreply@blogger.comBlogger13125tag:blogger.com,1999:blog-959939550345671470.post-66236498555097630712014-05-18T13:43:29.669+05:302014-05-18T13:43:29.669+05:30Thanks a lot for such an excellent clear concept. ...Thanks a lot for such an excellent clear concept. Really,sir....u r the master...sir i have small doubt in line[printf(“%d %d %d”.x.*ptr,**temp); ] is it .x. Or ,x, i.e [ printf(“%d %d %d”,x,*ptr,**temp);bimal shahhttps://www.blogger.com/profile/09790483261905457542noreply@blogger.comtag:blogger.com,1999:blog-959939550345671470.post-41663694807646640762014-03-21T17:47:54.906+05:302014-03-21T17:47:54.906+05:30Thank u soooooooooooooo much for helping me unders...Thank u soooooooooooooo much for helping me understand the concept of pointers & i hav a small doubt that is,is this a formula for pointer"a=5;ptr=&a"right......?plz send me rply<br>sumaya zama Syedhttps://www.blogger.com/profile/06850403142592264722noreply@blogger.comtag:blogger.com,1999:blog-959939550345671470.post-25267205004240984602013-05-16T12:19:55.080+05:302013-05-16T12:19:55.080+05:30Mohit you are mixing dialects of C...the snippet y...Mohit you are mixing dialects of C...the snippet you ionserted is C++, and pointer notation in C++ isn't the same as CSandwich Enthusiasthttps://www.blogger.com/profile/13747715154303659768noreply@blogger.comtag:blogger.com,1999:blog-959939550345671470.post-28408329858568233562013-04-27T10:43:56.140+05:302013-04-27T10:43:56.140+05:30when i run the program in cint *ptr;ptr=new int;*p...when i run the program in c<br>int *ptr;<br>ptr=new int;<br>*ptr=5;<br>cout<<(*&ptr)<<endl;<br>cout<<ptr<<endl;<br>cout<<(*ptr)<<endl;<br>cout<<(&*ptr)<<endl;<br>delete ptr;<br>It gives the output as<br>0x8d20008<br>0x8d20008<br>5<br>0x8d20008<br>but as in this tutorial it is written that it is not right to write &*p=p;<br>but the above mohithttps://www.blogger.com/profile/09991154098261564411noreply@blogger.comtag:blogger.com,1999:blog-959939550345671470.post-79064411998669878642013-04-27T10:42:26.542+05:302013-04-27T10:42:26.542+05:30This comment has been removed by the author.This comment has been removed by the author.mohithttps://www.blogger.com/profile/09991154098261564411noreply@blogger.comtag:blogger.com,1999:blog-959939550345671470.post-38174830006653679942013-03-12T08:42:56.443+05:302013-03-12T08:42:56.443+05:30niceeeeeee.......niceeeeeee.......tarun trivedihttps://www.blogger.com/profile/09456435921174196550noreply@blogger.comtag:blogger.com,1999:blog-959939550345671470.post-58415178209983269142012-03-25T20:05:24.460+05:302012-03-25T20:05:24.460+05:30c programming language is simple and the best lang...c programming language is simple and the best language............<br><br>u can solve any problem here...<br>but u should knowledge about "c"AVINASH SINGHhttps://www.blogger.com/profile/02811501612371209545noreply@blogger.comtag:blogger.com,1999:blog-959939550345671470.post-27892385276171060292011-01-28T15:06:39.870+05:302011-01-28T15:06:39.870+05:30nice work.............thanksnice work.............thanksSatheeshhttps://www.blogger.com/profile/03534968002217642428noreply@blogger.comtag:blogger.com,1999:blog-959939550345671470.post-39094353272710936052010-09-28T14:57:07.603+05:302010-09-28T14:57:07.603+05:30@Heena:**temp= **(&ptr)=*(*&ptr)=*ptr=*(&a...@Heena:<br>**temp= **(&ptr)=*(*&ptr)=*ptr=*(&x)=*&x=x=25<br><br>let me divide this into small pieces. left to right <br>x=25//<br>*&x=x // x=25<br>*&x=25//<br>x=25 (*and& will cancellation rule)<br>jut like that finally you will get <br><br>**temp = **(&ptr)=25 (*and& will canceled) <br>**temp=*ptr=25<br>**temp=25; (temp is pointer to another pointer variable Afiz Shttps://www.blogger.com/profile/00400041478552410482noreply@blogger.comtag:blogger.com,1999:blog-959939550345671470.post-4049894072106416212010-09-13T12:10:46.820+05:302010-09-13T12:10:46.820+05:30**temp= **(&ptr)=*(*&ptr)=*ptr=*(&x)=*...**temp= **(&ptr)=*(*&ptr)=*ptr=*(&x)=*&x=x=25<br>whats the meaning of this lineheenahttps://www.blogger.com/profile/05869684692885874462noreply@blogger.comtag:blogger.com,1999:blog-959939550345671470.post-77142681040319841672010-08-26T00:37:24.268+05:302010-08-26T00:37:24.268+05:30you can write it another wayint x;int *ptr;ptr=&am...you can write it another way<br>int x;<br>int *ptr;<br>ptr=&x;<br><br>in short you can write<br><br>int x;<br>int *ptr=&x;<br><br>that's allkrphttps://www.blogger.com/profile/06808183463193330489noreply@blogger.comtag:blogger.com,1999:blog-959939550345671470.post-1634716805815633462010-08-20T13:09:08.840+05:302010-08-20T13:09:08.840+05:30can u xplain me y u writeint *ptr=&x; as dis*p...can u xplain me y u write<br>int *ptr=&x; <br>as dis<br>*ptr= *(&x)nidhihttps://www.blogger.com/profile/11473121018999195182noreply@blogger.comtag:blogger.com,1999:blog-959939550345671470.post-41851503765563353562009-12-16T08:33:54.031+05:302009-12-16T08:33:54.031+05:30Good questions to learn pointers....Good questions to learn pointers....Sureshhttps://www.blogger.com/profile/15712970307940219778noreply@blogger.com