tag:blogger.com,1999:blog-32064785.post2886093963297591457..comments2024-03-29T15:16:22.263+05:30Comments on Freshers Interviews: C++ Interview Questionschaitanyahttp://www.blogger.com/profile/05855949584266440305noreply@blogger.comBlogger1125tag:blogger.com,1999:blog-32064785.post-78239427172055554442018-05-05T09:48:37.953+05:302018-05-05T09:48:37.953+05:30Hello Mate,
I learnt so much in such little time ...Hello Mate,<br /><br />I learnt so much in such little time about C++ Interview Questions. Even a toddler could become smart reading of your amazing articles.<br /><br />Could someone explain this code step by step:<br /><br />A static function is a function whose scope is limited to the current source file. Scope refers to the <a href="https://asha24.com/blog/c-interview-questions-and-answers/" rel="nofollow"> visibility of a function or variable. </a> If the function or variable is visible outside of the current source file, it is said to have global, or external, scope. If the function or variable is not visible outside of the current source file, it is said to have local, or static, scope.<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 />Best Regards,<br />JimAnonymoushttps://www.blogger.com/profile/02198548195213794657noreply@blogger.com