tag:blogger.com,1999:blog-959939550345671470.post2808924745075631765..comments2024-03-17T12:50:37.677+05:30Comments on C programming Interview questions and answers: C free online testPriyanka kumarihttp://www.blogger.com/profile/08145649011863585828noreply@blogger.comBlogger16125tag:blogger.com,1999:blog-959939550345671470.post-15786640074917952242016-05-03T12:48:28.958+05:302016-05-03T12:48:28.958+05:30hihiAnonymoushttps://www.blogger.com/profile/14162552523854582974noreply@blogger.comtag:blogger.com,1999:blog-959939550345671470.post-87043465614393341372016-04-16T18:49:03.469+05:302016-04-16T18:49:03.469+05:30#include
#define MAX 1000
int main(){
char bi...#include<br />#define MAX 1000<br /><br />int main(){<br /> char binaryNumber[MAX],hexaDecimal[MAX];<br /> long int i=0;<br /><br /> printf("Enter any hexadecimal number: ");<br /> scanf("%s",hexaDecimal);<br /><br /> printf("\nEquivalent binary value: ");<br /> while(hexaDecimal[i]){<br /> switch(hexaDecimal[i]){<br /> case &#Anonymousnoreply@blogger.comtag:blogger.com,1999:blog-959939550345671470.post-59948631413081184512016-04-16T18:48:02.188+05:302016-04-16T18:48:02.188+05:30hellop can i please get sme helphellop can i please get sme helpAnonymousnoreply@blogger.comtag:blogger.com,1999:blog-959939550345671470.post-74096898882943248002016-04-15T22:10:31.715+05:302016-04-15T22:10:31.715+05:30main()
{
int i;
printf("enter i\n");
sca...main()<br />{<br />int i;<br />printf("enter i\n");<br />scanf("%d",&i);<br />if(i<=50)<br />printf("entered no is lessthan 50");<br />else<br />printf("entered no is not in less than 50");<br />}<br />Anonymoushttps://www.blogger.com/profile/09957546441987509363noreply@blogger.comtag:blogger.com,1999:blog-959939550345671470.post-5250678590856315422016-04-15T22:07:46.113+05:302016-04-15T22:07:46.113+05:30while(num)
{
}
if u give no is 0 then condition is...while(num)<br />{<br />}<br />if u give no is 0 then condition is fail while wont exicute....<br />if u give non zero no conditio always true it goes to infinite loopAnonymoushttps://www.blogger.com/profile/09957546441987509363noreply@blogger.comtag:blogger.com,1999:blog-959939550345671470.post-57694492837978529272016-04-02T17:57:58.634+05:302016-04-02T17:57:58.634+05:30identify the errors in the program,correct them an...identify the errors in the program,correct them and explain the output thereof;<br />main ()<br />{<br />int i;<br />printf("enter the number")<br />scanf"",&i);<br />if(i<=50)<br />printf("\n entered number is <50)<br />Anonymoushttps://www.blogger.com/profile/15689738161403843907noreply@blogger.comtag:blogger.com,1999:blog-959939550345671470.post-8470611075786985732016-04-02T17:57:36.345+05:302016-04-02T17:57:36.345+05:30identify the errors in the program,correct them an...identify the errors in the program,correct them and explain the output thereof;<br />main ()<br />{<br />int i;<br />printf("enter the number")<br />scanf"",&i);<br />if(i<=50)<br />printf("\n entered number is <50)<br />Anonymoushttps://www.blogger.com/profile/15689738161403843907noreply@blogger.comtag:blogger.com,1999:blog-959939550345671470.post-9310789079765953912015-12-15T08:36:51.358+05:302015-12-15T08:36:51.358+05:30Can you tell the meaning of below code
while(num)
...Can you tell the meaning of below code<br />while(num)<br />{<br />//<br />}Anonymoushttps://www.blogger.com/profile/03929537805775254862noreply@blogger.comtag:blogger.com,1999:blog-959939550345671470.post-28766240053212235602015-03-28T15:09:56.103+05:302015-03-28T15:09:56.103+05:30q(5) -> q(2) -> q(1)
. | -&g...q(5) -> q(2) -> q(1)<br />. | -> q(1)<br />. | -> q(2) -> q(1)<br />. -> q(1)<br /><br />This is a recursive algorithm. Seven * are printed. The algorithm stops calling q recursivelly when w=1.<br />Ladeirahttps://www.blogger.com/profile/07194969942194077235noreply@blogger.comtag:blogger.com,1999:blog-959939550345671470.post-7387591372556413432014-03-29T16:27:25.781+05:302014-03-29T16:27:25.781+05:30can u provide some questions on bit programmingcan u provide some questions on bit programmingAnonymoushttps://www.blogger.com/profile/14342666854692401430noreply@blogger.comtag:blogger.com,1999:blog-959939550345671470.post-24973256727193767522013-06-21T02:16:19.291+05:302013-06-21T02:16:19.291+05:307 stars printed because
ist call
stack[5] return s...7 stars printed because<br />ist call<br />stack[5] return stmt 1st quiz...............(1)<br />2nd call<br />stack[5,2] return stmt 1st quiz................(2)<br />now w=1 <1 print *<br />return to (2) pop top element<br />now call by 2nd quiz stack[5,,2] return stmt 2nd quiz;...............(3)<br />w=1<1 print * <br />return to (3)pop top element<br />print * and return to (1)pop top Anonymousnoreply@blogger.comtag:blogger.com,1999:blog-959939550345671470.post-22245493163789289782013-05-10T17:48:30.186+05:302013-05-10T17:48:30.186+05:30Mokka subject.Mokka subject.Anonymousnoreply@blogger.comtag:blogger.com,1999:blog-959939550345671470.post-88137364401867429572013-05-02T15:01:40.875+05:302013-05-02T15:01:40.875+05:30It Will only a print a star because in if conditio...It Will only a print a star because in if condition you haven't written anything so only print one star on terminalAnonymousnoreply@blogger.comtag:blogger.com,1999:blog-959939550345671470.post-31310336591528951132011-11-17T10:39:31.237+05:302011-11-17T10:39:31.237+05:30pointers,functions and strings are my favorite cha...pointers,functions and strings are my favorite chapters in c programming and i can really defend these in 100%. i love c programmingpedrohttps://www.blogger.com/profile/04496449037795395852noreply@blogger.comtag:blogger.com,1999:blog-959939550345671470.post-24408386369256388002011-07-29T12:01:36.936+05:302011-07-29T12:01:36.936+05:30Explanation needed:-
#include
#include
void qui...Explanation needed:-<br /><br />#include <br />#include <br />void quiz(int w); main() { int x= 5; clrscr(); quiz(5); } void quiz(int w) { if(w>1) { quiz(w/2); quiz(w/2); } printf("*"); }Anonymousnoreply@blogger.comtag:blogger.com,1999:blog-959939550345671470.post-21665123131536513372010-04-25T15:30:32.161+05:302010-04-25T15:30:32.161+05:30syntactical que bt repeated thinkg requiresyntactical que bt repeated thinkg requireSonuhttps://www.blogger.com/profile/06264697066058475842noreply@blogger.com