tag:blogger.com,1999:blog-8612108870928357610.post5418517637915195061..comments2024-03-29T09:40:43.958+05:30Comments on Learn C Programming from Scratch: Easy-to-Follow Tutorial for Beginners: Program to Find the Biggest of 3 Numbers Using if else in CUnknownnoreply@blogger.comBlogger4125tag:blogger.com,1999:blog-8612108870928357610.post-83151067373685447822018-05-07T11:36:07.717+05:302018-05-07T11:36:07.717+05:30Hello Mate,
I learnt so much in such little time ...Hello Mate,<br /><br />I learnt so much in such little time about Program to Find the Biggest of 3 Numbers Using if else in C. Even a toddler could become smart reading of your amazing articles.<br /><br />Could someone explain this code <a href="https://asha24.com/blog/c-interview-questions-and-answers/" rel="nofollow"> step by step: </a><br />Code:<br />#include <br />#define MAX 10<br />int main()<br />{<br />char array[MAX][MAX], c = 0;<br />int d = 1, x = 0, i, j;<br />do scanf("%s", array[x]);<br />while (array[x++][0] != '0');<br />{<br />float* pf;<br />int xx, *pi = (int*)&array[0][7];<br />xx = ((*pi) & 0x41000000);<br />pf = (float*)&xx;<br />printf("%5.2f\n", *pf);<br />}<br />for (c-=--x; c++&**array; d+=!(c<0)) d<<=1;<br />d -= c;<br />for (i = 0; i < x;<br />i==1?printf("%c ", array[i][x>>1]):i, ++i)<br />for (j = 0; j <= x - i;<br />printf("%c", array[i][j++]));<br />printf("%x", d);<br />return 0;<br />}<br /><br />By the way do you have any YouTube videos, would love to watch it. I would like to connect you on LinkedIn, great to have experts like you in my connection (In case, if you don’t have any issues).<br /><br /><br />Best Regards,<br />Irene Hynes<br />Anonymoushttps://www.blogger.com/profile/01329230669792273903noreply@blogger.comtag:blogger.com,1999:blog-8612108870928357610.post-33816040530378507462017-10-11T01:00:53.427+05:302017-10-11T01:00:53.427+05:30We can include above
else if(a==b)&&(a>...We can include above <br />else if(a==b)&&(a>c)Anonymoushttps://www.blogger.com/profile/00452417924325835564noreply@blogger.comtag:blogger.com,1999:blog-8612108870928357610.post-27944276534887783692012-05-24T21:13:01.201+05:302012-05-24T21:13:01.201+05:30@Killed By Death: Sorry for the late reply but thi...@Killed By Death: Sorry for the late reply but this code works just fine even when two or all the three numbers are same. <br /><br />If you notice in the first IF we are checking for a > b so the ELSE part is dealing with a <= b. <br /><br />So, in your example when a = b = 5 and c = 13, the condition a > b is false so the ELSE part is executed. Then inside ELSE, the first IF is executed as c > b (13 > 5). So the output of the program is "13 is the biggest number". Hope this explanation clears your doubt.Tanmay Jhawarhttps://www.blogger.com/profile/16070311658147185012noreply@blogger.comtag:blogger.com,1999:blog-8612108870928357610.post-30002010281351535122012-05-22T22:12:05.197+05:302012-05-22T22:12:05.197+05:30what if a == b............
i mean this thing does...what if a == b............ <br />i mean this thing does not work.......when i enter the integers as follows:<br /> 5<br /> 5<br /> 13rt8shttps://www.blogger.com/profile/13534271781641303269noreply@blogger.com