tag:blogger.com,1999:blog-959939550345671470.post2585540517050674202..comments2024-03-24T12:51:18.535+05:30Comments on C programming Interview questions and answers: C pointers questionsPriyanka kumarihttp://www.blogger.com/profile/08145649011863585828noreply@blogger.comBlogger24125tag:blogger.com,1999:blog-959939550345671470.post-75473701966801037182022-04-01T13:26:26.524+05:302022-04-01T13:26:26.524+05:30Nice and very helpful C Programming articles... ke...Nice and very helpful <a href="https://www.codeforhunger.com/2020/06/switch-case-in-c-with-exercises-and.html" rel="nofollow">C Programming</a> articles... keep posting...<br /><a href="https://www.codeforhunger.com/2020/08/C%20pattern%20programs.html" rel="nofollow">C pattern programming examples</a><br /><a href="https://www.codeforhunger.com/2020/07/array-in-c-with-exercises-and-examples.html"...https://www.blogger.com/profile/07583106645113839642noreply@blogger.comtag:blogger.com,1999:blog-959939550345671470.post-64216858386785805612021-07-29T10:22:06.145+05:302021-07-29T10:22:06.145+05:30Aivivu chuyên vé máy bay, tham khảo
vé máy bay đi...Aivivu chuyên vé máy bay, tham khảo<br /><br /><a href="https://aivivu.com/ve-may-bay-di-my-us-gia-re-bao-nhieu-tien/" rel="nofollow">vé máy bay đi Mỹ hạng thương gia</a><br /><br /><a href="https://datvere.vn/ve-may-bay-tu-my-ve-viet-nam/" rel="nofollow">bay từ california về việt nam mất bao lâu </a><br /><br /><a href="https://vietjetair-online.com/ve-may-bay-tu-nhat-ban-ve-viet-nam/" rel="Huongkvbhttps://www.blogger.com/profile/12068916950020887577noreply@blogger.comtag:blogger.com,1999:blog-959939550345671470.post-22181104992545805042016-06-08T13:03:57.856+05:302016-06-08T13:03:57.856+05:30will give garbage or error for p,as a[2][2][2]=*(*...will give garbage or error for p,as a[2][2][2]=*(*(*(a+2)+2)+2) but that array element does not exist as array always starts from zero.Vivek Anandhttps://www.blogger.com/profile/08022465095180386104noreply@blogger.comtag:blogger.com,1999:blog-959939550345671470.post-91478232246153190382016-05-30T00:00:04.201+05:302016-05-30T00:00:04.201+05:30float a,*b();here *b() meaning ?float a,*b();here *b() meaning ?Anonymoushttps://www.blogger.com/profile/12228562032309872973noreply@blogger.comtag:blogger.com,1999:blog-959939550345671470.post-15849883007152498822015-08-11T21:31:23.032+05:302015-08-11T21:31:23.032+05:30output: 0----10
this is because,in array "...output: 0----10 <br />this is because,in array "a" the last value is a[1][1][1] so while printing value at "a[2][2][2]" it prints null value since array does check boundary. *p=0<br /><br />*q= ***a => **(a+0) => **(a[0]) => *(a[0]+0)=>*(a[0][0])=>a[0][0][0] <br />so the *q = 10joshapathhttps://www.blogger.com/profile/17141012695308620780noreply@blogger.comtag:blogger.com,1999:blog-959939550345671470.post-84362684585592774532015-08-11T21:12:56.855+05:302015-08-11T21:12:56.855+05:30no it wont because of keyword static which makes t...no it wont because of keyword static which makes the array to be stored in data area instead of stack (which is volatile).joshapathhttps://www.blogger.com/profile/17141012695308620780noreply@blogger.comtag:blogger.com,1999:blog-959939550345671470.post-83920652993108797692015-04-08T10:36:44.599+05:302015-04-08T10:36:44.599+05:30very good post. very good post. Balu Naikhttps://www.blogger.com/profile/09883925628275171581noreply@blogger.comtag:blogger.com,1999:blog-959939550345671470.post-69745639653401866322015-04-08T10:35:40.346+05:302015-04-08T10:35:40.346+05:30very good post. very good post. Balu Naikhttps://www.blogger.com/profile/09883925628275171581noreply@blogger.comtag:blogger.com,1999:blog-959939550345671470.post-20016001863999154252015-02-28T01:43:28.677+05:302015-02-28T01:43:28.677+05:30program to convert float to binaryprogram to convert float to binaryAnonymoushttps://www.blogger.com/profile/11689941524691159042noreply@blogger.comtag:blogger.com,1999:blog-959939550345671470.post-3768062425636077012015-02-28T01:42:41.305+05:302015-02-28T01:42:41.305+05:30program to convert float to binaryprogram to convert float to binaryAnonymoushttps://www.blogger.com/profile/11689941524691159042noreply@blogger.comtag:blogger.com,1999:blog-959939550345671470.post-60681369549885815302015-02-15T07:19:37.870+05:302015-02-15T07:19:37.870+05:30Question 1: 320 in binary is 101000000. But it is ...Question 1: 320 in binary is 101000000. But it is different in the explanation. Is that the little endian representation of 320?eric948470https://www.blogger.com/profile/00213993012532116340noreply@blogger.comtag:blogger.com,1999:blog-959939550345671470.post-21079358798717302102014-12-14T12:58:00.586+05:302014-12-14T12:58:00.586+05:30Use structures using arrays with sorting proramUse structures using arrays with sorting proramAnonymoushttps://www.blogger.com/profile/18430861896378120942noreply@blogger.comtag:blogger.com,1999:blog-959939550345671470.post-70311246747020671632014-10-12T03:53:20.331+05:302014-10-12T03:53:20.331+05:30explain me q-4explain me q-4Anonymoushttps://www.blogger.com/profile/13331531317199681826noreply@blogger.comtag:blogger.com,1999:blog-959939550345671470.post-29990824296906533132014-10-12T03:49:21.493+05:302014-10-12T03:49:21.493+05:30explain me q-2...please
explain me q-2...please<br />Anonymoushttps://www.blogger.com/profile/13331531317199681826noreply@blogger.comtag:blogger.com,1999:blog-959939550345671470.post-1128051171327968902014-07-04T18:50:13.532+05:302014-07-04T18:50:13.532+05:30use structure conceptuse structure conceptchetanhttps://www.blogger.com/profile/01213586129609775737noreply@blogger.comtag:blogger.com,1999:blog-959939550345671470.post-86833100989339225602014-03-11T10:10:33.098+05:302014-03-11T10:10:33.098+05:30In q-6, why output is power of c in turbo c++4.5? ...In q-6, why output is power of c in turbo c++4.5? Plz explain that.harapriya18https://www.blogger.com/profile/00237692222955048932noreply@blogger.comtag:blogger.com,1999:blog-959939550345671470.post-70013615645234788992014-03-10T21:20:08.307+05:302014-03-10T21:20:08.307+05:30In Q-3, why output of **k is address in turbo c++ ...In Q-3, why output of **k is address in turbo c++ 4.5?give the explanataion.Anonymousnoreply@blogger.comtag:blogger.com,1999:blog-959939550345671470.post-32936109540935594562014-02-28T15:50:01.608+05:302014-02-28T15:50:01.608+05:30Plz help:
Initialize an integer array, get values ...Plz help:<br />Initialize an integer array, get values of array from user and store them in the array using pointer.Anonymoushttps://www.blogger.com/profile/13868943673214364218noreply@blogger.comtag:blogger.com,1999:blog-959939550345671470.post-43286161051702628672013-06-25T19:57:59.253+05:302013-06-25T19:57:59.253+05:30should give an error as q doesn't point to a l...should give an error as q doesn't point to a location.Lokesh Sharmahttps://www.blogger.com/profile/05588451431975279898noreply@blogger.comtag:blogger.com,1999:blog-959939550345671470.post-63022520279483804682012-09-14T00:50:51.673+05:302012-09-14T00:50:51.673+05:30what is O/P of this n please also tell whats the c...what is O/P of this n please also tell whats the concept behind that o/p?<br />#include<br /><br />main()<br /><br />{<br /><br />int a[2][2][2] = { {10,2,3,4}, {5,6,7,8} };<br /><br />int *p,*q;<br /><br />p=&a[2][2][2];<br /><br />*q=***a;<br /><br />printf("%d----%d",*p,*q);<br /><br />}sahilnoreply@blogger.comtag:blogger.com,1999:blog-959939550345671470.post-52290912715383554202012-09-14T00:03:01.431+05:302012-09-14T00:03:01.431+05:30i need a C program that accepts the roll numbers a...i need a C program that accepts the roll numbers and names of N students from the user … and prints those in the alphabetical order of the name, along with the roll numbers.<br />Enter the number of students: 3<br />Enter the name of student #1: vinay<br />Enter vinay’s roll number: 12<br />Enter the name of student #2: anand<br />Enter anand’s roll number: 14<br />Enter the name of student #3: Anonymousnoreply@blogger.comtag:blogger.com,1999:blog-959939550345671470.post-79883165865819062012-09-14T00:00:48.892+05:302012-09-14T00:00:48.892+05:30i want a C program that takes the input – the mark...i want a C program that takes the input – the mark sheets of N number of students.<br />for examle;<br />●Enter the marks for student 1 student name: aaa <br />roll number: 24 <br />marks obtained in 5 subjects: 56 89 87 76 98<br />●Enter the roll number of the student to be searched: 22<br />●The details of student with roll number 22:<br />name: bbb<br />total marks obtained: 293Anonymousnoreply@blogger.comtag:blogger.com,1999:blog-959939550345671470.post-29840641080104302312012-08-20T22:55:33.097+05:302012-08-20T22:55:33.097+05:30will this program face dangling pointer problem???...will this program face dangling pointer problem???<br /><br />#include<br />unsigned long int (* avg())[3]{<br />static unsigned long int arr[3] = {1,2,3};<br />return &arr;<br />}<br />int main(){<br />unsigned long int (*ptr)[3];<br />ptr = avg();<br />printf("%d" , *(*ptr+2));<br />return 0;<br />}Anonymoushttps://www.blogger.com/profile/03413703666614119350noreply@blogger.comtag:blogger.com,1999:blog-959939550345671470.post-58953533893705706542012-08-07T12:12:37.308+05:302012-08-07T12:12:37.308+05:30according to Q14,there is no explanation please pr...according to Q14,there is no explanation please provide explanation,it is very good for beginners...otherwise everthing fine...<br />ITS VERY GOOD JOB..PLEASE KEEP IT UPUnknownhttps://www.blogger.com/profile/14514341721662341714noreply@blogger.com