tag:blogger.com,1999:blog-959939550345671470.post3243323415793104135..comments2024-03-24T12:51:18.535+05:30Comments on C programming Interview questions and answers: Array questions with explanation in cPriyanka kumarihttp://www.blogger.com/profile/08145649011863585828noreply@blogger.comBlogger17125tag:blogger.com,1999:blog-959939550345671470.post-16716694441279306422016-11-26T16:07:46.855+05:302016-11-26T16:07:46.855+05:30The answer of second question is wrong you should ...The answer of second question is wrong you should correct it. The output would be garbage value rather than null.Anonymoushttps://www.blogger.com/profile/08090070379903879083noreply@blogger.comtag:blogger.com,1999:blog-959939550345671470.post-62004537832214987162016-11-03T15:25:06.659+05:302016-11-03T15:25:06.659+05:30I think For 2nd question the answer should be com...I think For 2nd question the answer should be compile time error...Siddhartha raohttps://www.blogger.com/profile/00463439063210262778noreply@blogger.comtag:blogger.com,1999:blog-959939550345671470.post-44603385417431191602015-12-15T03:45:46.767+05:302015-12-15T03:45:46.767+05:30cause u are declaring an array of 7 characters whe...cause u are declaring an array of 7 characters whereas Network has 7 characters yes but u leave no place for the null character '\0' so the compiler doesnt know where to stop printing and prints out some characters more.<br />Btw sry for my english, gj for the site :) <br />best regardsAnonymoushttps://www.blogger.com/profile/13404511629519702727noreply@blogger.comtag:blogger.com,1999:blog-959939550345671470.post-10091219774939440052015-07-30T12:23:31.761+05:302015-07-30T12:23:31.761+05:30Pls provide the explanations
Pls provide the explanations <br />Anonymoushttps://www.blogger.com/profile/04124119220804839928noreply@blogger.comtag:blogger.com,1999:blog-959939550345671470.post-71482334230666234402015-07-23T17:23:55.378+05:302015-07-23T17:23:55.378+05:30why garbage for the first question kindly explain
...why garbage for the first question kindly explain<br />Anonymoushttps://www.blogger.com/profile/05578334064426815121noreply@blogger.comtag:blogger.com,1999:blog-959939550345671470.post-26442990005861057792015-04-03T14:58:55.395+05:302015-04-03T14:58:55.395+05:30can any1 help to solve que. no. 11.
printf("%...can any1 help to solve que. no. 11.<br />printf("%d\t",***(ptr+1));<br />how this statment printing address.sachin nagarhttps://www.blogger.com/profile/03756316175897167851noreply@blogger.comtag:blogger.com,1999:blog-959939550345671470.post-82796940016107047542014-03-27T15:16:50.515+05:302014-03-27T15:16:50.515+05:30hey where are the explanations
hey where are the explanations<br />Anonymoushttps://www.blogger.com/profile/15421450797579683555noreply@blogger.comtag:blogger.com,1999:blog-959939550345671470.post-78746315163947908932013-09-15T01:48:40.445+05:302013-09-15T01:48:40.445+05:30plz sir upload the explanation too.... need them plz sir upload the explanation too.... need them Anonymousnoreply@blogger.comtag:blogger.com,1999:blog-959939550345671470.post-32915417499808135842013-07-23T15:13:57.000+05:302013-07-23T15:13:57.000+05:30Even though Q1 will compile correctly with "g...Even though Q1 will compile correctly with "gcc -pedantic -Wall -ansi -Werror" and give the output as 'expected', i.e., Network, it is not correct because you are not reserving space for the '\0' null character to make it a string.Anonymousnoreply@blogger.comtag:blogger.com,1999:blog-959939550345671470.post-15642142048066381592013-03-04T14:18:07.224+05:302013-03-04T14:18:07.224+05:30Sir please provide some explanation about the ques...Sir please provide some explanation about the questions.Hajvery Universityhttp://hajvery2012.blogspot.comnoreply@blogger.comtag:blogger.com,1999:blog-959939550345671470.post-22400729829548590542012-07-18T22:17:38.514+05:302012-07-18T22:17:38.514+05:30Here there are so many questions which i can not ...Here there are so many questions which i can not undeestand well please explain it with good method ...<br /><br />Ok.Anonymousnoreply@blogger.comtag:blogger.com,1999:blog-959939550345671470.post-9766742793104937852011-03-10T10:11:42.887+05:302011-03-10T10:11:42.887+05:30Hey manish.....
your website is awesome yaar
it h...Hey manish.....<br /> your website is awesome yaar<br />it helps me to get comfort over the loops and much more....<br />keep rockin man.......Anonymousnoreply@blogger.comtag:blogger.com,1999:blog-959939550345671470.post-62907939888069085652011-01-25T20:16:24.665+05:302011-01-25T20:16:24.665+05:30Mainsh,please add the explanation of 2nd question....Mainsh,please add the explanation of 2nd question.Anonymousnoreply@blogger.comtag:blogger.com,1999:blog-959939550345671470.post-52563855683401638282010-12-16T21:21:09.397+05:302010-12-16T21:21:09.397+05:30in q1>
the actual size of array is 8 (arr[7])
...in q1><br />the actual size of array is 8 (arr[7])<br /> string terminates with a \0, so it takes a garbage value.vkeyhttps://www.blogger.com/profile/01002504125076841253noreply@blogger.comtag:blogger.com,1999:blog-959939550345671470.post-87215460907183909822010-10-02T01:11:46.934+05:302010-10-02T01:11:46.934+05:30plz give some explanation for question 8..
hoz the...plz give some explanation for question 8..<br />hoz these 2d n 3d array address location are given with respect to pointers.sharadhttps://www.blogger.com/profile/12415227481125279539noreply@blogger.comtag:blogger.com,1999:blog-959939550345671470.post-45752733647540065322010-06-15T00:29:49.374+05:302010-06-15T00:29:49.374+05:30Answer of first question is correct. It will garba...Answer of first question is correct. It will garbage. You may get output as "Network" but not<br />always. I will publish explanation of all questions very soon. Please think little more why<br />output is not "Network" ?Priyanka kumarihttps://www.blogger.com/profile/08145649011863585828noreply@blogger.comtag:blogger.com,1999:blog-959939550345671470.post-39593852202258269312010-06-14T17:34:38.185+05:302010-06-14T17:34:38.185+05:30answer to the first question is "Network"...answer to the first question is "Network" and not garbage value...pls correct it.Anonymousnoreply@blogger.com