tag:blogger.com,1999:blog-959939550345671470.post6092889948233753735..comments2024-03-24T12:51:18.535+05:30Comments on C programming Interview questions and answers: Looping questions in c and answersPriyanka kumarihttp://www.blogger.com/profile/08145649011863585828noreply@blogger.comBlogger47125tag:blogger.com,1999:blog-959939550345671470.post-38584718639761547732019-09-25T08:46:21.115+05:302019-09-25T08:46:21.115+05:30Good questionsGood questionsMuhammed Shiyadhhttps://www.blogger.com/profile/12748005315246097596noreply@blogger.comtag:blogger.com,1999:blog-959939550345671470.post-6834838459548119252016-08-08T09:30:31.742+05:302016-08-08T09:30:31.742+05:30Pls help me...
when i write a code like this...
#...Pls help me...<br />when i write a code like this...<br /><br />#include <br />int main(void)<br />{<br /> int count=0;<br /> while (count < 10 && ++count)<br /> printf("count is %d\n", count);<br /> return 0;<br />}<br />output :<br />1 2 3 4 5 6 7 8 9 10<br />But when i change ++ count by count ++<br />#include <br />int main(void)<br />{<br /> int count=Shaemhttps://www.blogger.com/profile/06086363222431234369noreply@blogger.comtag:blogger.com,1999:blog-959939550345671470.post-88703502976846264862016-07-05T15:30:39.240+05:302016-07-05T15:30:39.240+05:30These are so tricky and so helpful in understandin...These are so tricky and so helpful in understanding the concepts! Thank you!Anonymoushttps://www.blogger.com/profile/13224851105336083765noreply@blogger.comtag:blogger.com,1999:blog-959939550345671470.post-87701265235155200512016-07-05T15:29:26.829+05:302016-07-05T15:29:26.829+05:30This comment has been removed by the author.Anonymoushttps://www.blogger.com/profile/13224851105336083765noreply@blogger.comtag:blogger.com,1999:blog-959939550345671470.post-22135382767386367562016-06-26T03:17:59.458+05:302016-06-26T03:17:59.458+05:30i=Not oprater,its revers the valuei=Not oprater,its revers the valueAnonymoushttps://www.blogger.com/profile/05005995527003604249noreply@blogger.comtag:blogger.com,1999:blog-959939550345671470.post-41855042100803905152016-06-26T03:13:24.427+05:302016-06-26T03:13:24.427+05:30%i : prints number in integer format
%d : prints ...%i : prints number in integer format <br />%d : prints number in decimal formatAnonymoushttps://www.blogger.com/profile/05005995527003604249noreply@blogger.comtag:blogger.com,1999:blog-959939550345671470.post-89056519687180487032016-06-26T03:11:18.428+05:302016-06-26T03:11:18.428+05:30#include
int main()
{
int m,t;
for (m=0; m<...#include<br />int main()<br />{<br /> int m,t;<br /> for (m=0; m<3; ++m)<br /> t=(m%2)? m:m+2; // Output is 4<br />{<br /> printf("output=%d",t);<br />}<br /><br />}Anonymoushttps://www.blogger.com/profile/05005995527003604249noreply@blogger.comtag:blogger.com,1999:blog-959939550345671470.post-79292559777262023692016-06-26T02:53:00.846+05:302016-06-26T02:53:00.846+05:30#include
int main()
{
int semsterfee=6000,projectf...#include<br />int main()<br />{<br />int semsterfee=6000,projectfee;<br />int i,y=1;<br />printf("Tution amount for 1 semester = $6000\n");<br /><br />for(i=2;i<=10;i++)<br />{<br />semsterfee=(semsterfee+6000*2/100);<br />projectfee=semsterfee;<br />printf(" Tution amount for %d semester= $%d\n",y=y+1,projectfee);<br /><br />}<br /><br />getch();<br />return 0;<br />}Anonymoushttps://www.blogger.com/profile/05005995527003604249noreply@blogger.comtag:blogger.com,1999:blog-959939550345671470.post-50198240907194631882016-04-12T00:32:03.865+05:302016-04-12T00:32:03.865+05:30Can You Improve the Explanation Section..
I didn&#...Can You Improve the Explanation Section..<br />I didn't find your explanation Too concise and clear<br />priyankhttps://www.blogger.com/profile/07468891446938115163noreply@blogger.comtag:blogger.com,1999:blog-959939550345671470.post-65209435315160179382016-03-31T13:02:37.977+05:302016-03-31T13:02:37.977+05:30 i love you i love youAnonymoushttps://www.blogger.com/profile/02770315607226928567noreply@blogger.comtag:blogger.com,1999:blog-959939550345671470.post-39656763350766402632016-03-08T20:08:10.245+05:302016-03-08T20:08:10.245+05:30what is the meaning of !-2what is the meaning of !-2Anonymoushttps://www.blogger.com/profile/00873249950112928715noreply@blogger.comtag:blogger.com,1999:blog-959939550345671470.post-87977735544545924732015-12-02T17:02:58.465+05:302015-12-02T17:02:58.465+05:30Is there any1 here who could help me?Is there any1 here who could help me?Anonymoushttps://www.blogger.com/profile/06114796819991712689noreply@blogger.comtag:blogger.com,1999:blog-959939550345671470.post-68140356339928979362015-12-02T02:02:33.175+05:302015-12-02T02:02:33.175+05:30write a c program to generate the customer bill fo...write a c program to generate the customer bill for a point of sale system used in a retail shop. The program must use a predefined list of ANY 5 items, while the user will enter the item code and the quantity for n number of items selected by the customer, to print the the bill including a goods and service tax of 6%. ( I am stuck here creating the predefined list and giving item codes. Can any Anonymoushttps://www.blogger.com/profile/06114796819991712689noreply@blogger.comtag:blogger.com,1999:blog-959939550345671470.post-57314187364224903452015-10-18T02:17:54.889+05:302015-10-18T02:17:54.889+05:30Agree with this explanation.Agree with this explanation.Srujanhttps://www.blogger.com/profile/00303630259079514955noreply@blogger.comtag:blogger.com,1999:blog-959939550345671470.post-58264071083788977792015-07-15T09:57:14.871+05:302015-07-15T09:57:14.871+05:30Here you have to know the operators Associativity....Here you have to know the operators Associativity. Both '+' & '!' have same priority. The Associativity is from right to left. So first addition will take place. 0+2 is 2. And "!2=0". Any positive number with NOT symbol is equal to zero.Anonymoushttps://www.blogger.com/profile/06296880128685350829noreply@blogger.comtag:blogger.com,1999:blog-959939550345671470.post-89380463384624358702015-07-15T09:30:54.885+05:302015-07-15T09:30:54.885+05:30#include
int main()
{
int i,great=0,low=0,a...#include <br /><br />int main() <br />{<br /> int i,great=0,low=0,a[8];<br /> printf("Enter 8 numbers: ");<br /> for(i=0;i<8;i++)<br /> {<br /> scanf("%d ",&a[i]);<br /> }<br /> great=a[0];<br /> low=a[0];<br /> while(i--)<br /> {<br /> if(greata[i])<br /> {<br /> low=a[i];<br /> } <br /> }<br /> printf("Greatest: %d \n",great);<Anonymoushttps://www.blogger.com/profile/06296880128685350829noreply@blogger.comtag:blogger.com,1999:blog-959939550345671470.post-55066994767708933422015-07-14T18:11:25.784+05:302015-07-14T18:11:25.784+05:30Here loop will never execute because the last numb...Here loop will never execute because the last number is 0. <br />Suppose if you try this "while(5,4,3,2,1)" the loop will never end because the last number is one.<br />It means while takes the last number as condition.Anonymoushttps://www.blogger.com/profile/06296880128685350829noreply@blogger.comtag:blogger.com,1999:blog-959939550345671470.post-55872346157591728272015-06-20T05:34:43.746+05:302015-06-20T05:34:43.746+05:30Question 9:
Could somebody please explain to me h...Question 9: <br />Could somebody please explain to me how *("625" + 3) return the memory address of character '\0'?<br />what is this expression mean ("625" + 3) in C?Anonymoushttps://www.blogger.com/profile/15553761294921231649noreply@blogger.comtag:blogger.com,1999:blog-959939550345671470.post-33052753464563809662015-02-23T19:48:51.586+05:302015-02-23T19:48:51.586+05:30answer will be 4answer will be 4Anonymoushttps://www.blogger.com/profile/05991564224357621296noreply@blogger.comtag:blogger.com,1999:blog-959939550345671470.post-71113993393119251472014-07-28T22:33:41.422+05:302014-07-28T22:33:41.422+05:30output will be 2 output will be 2 Gopal Singhhttps://www.blogger.com/profile/11796737192303830307noreply@blogger.comtag:blogger.com,1999:blog-959939550345671470.post-85451360719420719472014-03-29T22:26:00.915+05:302014-03-29T22:26:00.915+05:30what is the difference of using %d and %i?
I think...what is the difference of using %d and %i?<br />I think both produce same result.<br />Please clear my doubt about this.Ankit ghiyahttps://www.blogger.com/profile/02538077476101441956noreply@blogger.comtag:blogger.com,1999:blog-959939550345671470.post-32812059114707099192014-02-05T20:43:38.727+05:302014-02-05T20:43:38.727+05:30tanx frnds
and Excellent
tanx frnds<br /> and Excellent<br />anjaneyareddynoreply@blogger.comtag:blogger.com,1999:blog-959939550345671470.post-59959783199302484772014-01-19T21:21:02.774+05:302014-01-19T21:21:02.774+05:30what will be output of following prograam??
for (...what will be output of following prograam??<br /><br />for (m=0; m<3; ++m)<br />t=(m%2)? m:m+2;<br />printf("%d",t)Anonymoushttps://www.blogger.com/profile/15639150627302780280noreply@blogger.comtag:blogger.com,1999:blog-959939550345671470.post-55668329442582227702013-12-04T15:33:17.271+05:302013-12-04T15:33:17.271+05:30the way of explanation and way of writing is so .....the way of explanation and way of writing is so ............great..............<br />SOYAM KANNARAJUhttps://www.blogger.com/profile/11548626866239655594noreply@blogger.comtag:blogger.com,1999:blog-959939550345671470.post-10195074315446916632013-11-28T19:41:33.707+05:302013-11-28T19:41:33.707+05:30Is it possible to create a
C program to find the l...Is it possible to create a<br />C program to find the largest and smallest of n numbes inputed by user using while loop?Anonymousnoreply@blogger.com