tag:blogger.com,1999:blog-959939550345671470.post2608050010620183932..comments2024-03-24T12:51:18.535+05:30Comments on C programming Interview questions and answers: Pointer interview questions in cPriyanka kumarihttp://www.blogger.com/profile/08145649011863585828noreply@blogger.comBlogger12125tag:blogger.com,1999:blog-959939550345671470.post-84774320671201106662015-10-27T04:31:41.764+05:302015-10-27T04:31:41.764+05:30Except one, which is former one is stored in tempo...Except one, which is former one is stored in temporary section of memory i.e STACK which is freed by compiler automatically after the end of program and the latter one is stored in HEAP section of memory which we have to explicitly free it by calling free function in c and delete operator in c++.Anonymoushttps://www.blogger.com/profile/02632735725728964260noreply@blogger.comtag:blogger.com,1999:blog-959939550345671470.post-48350900436197390682015-10-27T04:22:50.122+05:302015-10-27T04:22:50.122+05:30This comment has been removed by the author.Anonymoushttps://www.blogger.com/profile/02632735725728964260noreply@blogger.comtag:blogger.com,1999:blog-959939550345671470.post-42247104954828348162011-10-03T18:43:56.829+05:302011-10-03T18:43:56.829+05:30It is 100% true to say that "Every array nam...It is 100% true to say that "Every array name and function names are constant pointers".<br /><br />int a[5];<br />int * const p=(int *)malloc(5 * sizeof(int));<br /><br />The above two statements dont have exactly a single difference.Anonymousnoreply@blogger.comtag:blogger.com,1999:blog-959939550345671470.post-30168980788103307982011-10-03T18:40:48.633+05:302011-10-03T18:40:48.633+05:30Array of intergers int a[5];
array of characters c...Array of intergers int a[5];<br />array of characters char str[40];<br /><br />Array of addresses are called as array of pointers.<br />char *names[89];<br />It has a numerous advantages over 2D array if used with the strings .Anonymousnoreply@blogger.comtag:blogger.com,1999:blog-959939550345671470.post-53917566030928485462011-10-03T18:38:15.615+05:302011-10-03T18:38:15.615+05:30we have heard that pointers can hold the address o...we have heard that pointers can hold the address of integers ,characters ,floats etc. also a pointer can hold the address of function exp (*p)();In using this prototype is compulsory.Anonymousnoreply@blogger.comtag:blogger.com,1999:blog-959939550345671470.post-70140872423522189042011-10-03T18:35:27.105+05:302011-10-03T18:35:27.105+05:30Apart from complex code there is no disadvantage i...Apart from complex code there is no disadvantage in using a pointer.Anonymousnoreply@blogger.comtag:blogger.com,1999:blog-959939550345671470.post-12171584942956068312011-10-03T18:34:04.792+05:302011-10-03T18:34:04.792+05:30Far Pointer :- A pointer created in one segment al...Far Pointer :- A pointer created in one segment allcating memory from another segment is called far pointer.<br />exp :- char far *p=OxB8000000;<br />They are no more used bcoz of a lot of issues associated with the turbo C compiler .There is no near,far or huge in gcc compiler.Anonymousnoreply@blogger.comtag:blogger.com,1999:blog-959939550345671470.post-74285842142994463262011-10-03T18:29:41.398+05:302011-10-03T18:29:41.398+05:30generic pointer :- A pointer to void is said to be...generic pointer :- A pointer to void is said to be generic pointer.The most important feature of generic pointer is that it can store the address of any kind of variable may be int,char,float double etc. But int *p can store only the address of integer variable.like char *p can store only the address of char variable etc.Anonymousnoreply@blogger.comtag:blogger.com,1999:blog-959939550345671470.post-25936855032231872082011-10-03T18:23:46.424+05:302011-10-03T18:23:46.424+05:30Wild pointer=A pointer pointing to an invalid addr...Wild pointer=A pointer pointing to an invalid address for exp.<br />int *p=0x23ac45;<br />The assigned address may be valid or invalid r/w to this address leads to segmentation fault.<br />also int *p;<br />p is pointing to an invalid address beware using them.Anonymousnoreply@blogger.comtag:blogger.com,1999:blog-959939550345671470.post-24703143596014884622011-01-25T17:25:09.951+05:302011-01-25T17:25:09.951+05:30i need more c progam qustns(not puzzles)
need name...i need more c progam qustns(not puzzles)<br />need name of pgmUnknownhttps://www.blogger.com/profile/01602695290270930312noreply@blogger.comtag:blogger.com,1999:blog-959939550345671470.post-4316121596581851582010-07-09T14:15:24.161+05:302010-07-09T14:15:24.161+05:30how 2 find answer for above questions
www.forum....how 2 find answer for above questions<br /><br /><br />www.forum.symphoniks.comAnonymoushttps://www.blogger.com/profile/11830076923131018377noreply@blogger.comtag:blogger.com,1999:blog-959939550345671470.post-16608634455225348792010-06-25T07:14:40.652+05:302010-06-25T07:14:40.652+05:30answers for above questionsanswers for above questionsUnknownhttps://www.blogger.com/profile/18066891547748248233noreply@blogger.com