EmbLogic's Blog

Author Archives: ashutosh

Enjoying Emblogic :)))

Posted in Uncategorized | Leave a comment

long time problem solved

devices were not unregisterd but today its done

Posted in Uncategorized | Leave a comment

problem in implementing inet

whenever i execute server every time i need to change the port no. if i don’t change its sayin “bind: address in use”..?????  

Posted in Uncategorized | 1 Comment

to siddarath sir

sir i have implemented single client server model using socket….heading towards multiple client

Posted in Uncategorized | Leave a comment

project status to siddarath sir.

sir i have implement client  server model using message queue

Posted in Uncategorized | Comments Off

semaphore

suppose we define a binary semaphore why its starting value is 1???????  

Posted in Uncategorized | Leave a comment

what’s wrong wid da code??????

#include<stdio.h> int sarr[7]; int i,j=200;top=-1; int push(); int pop(); int display(); int ch; int main() { while(j>1) { printf(“enter case\n”); scanf(“%d”,&ch); switch(ch) { case 0:push(); break; case 1:pop(); break; case 3:j=-1; break; default: printf(“wrong selection”); } } } int push() … Continue reading →

Posted in Uncategorized | 2 Comments

what does child_pid>1 and exit(0)mean???

#include<stdio.h> #include<sys/types.h> #include<unistd.h> #include<stdlib.h> int main() { pid_t child_pid; child_pid = fork (); if (child_pid > 0) { }else { exit(0); }

Posted in Uncategorized | Leave a comment

exit code

what does exit code>or < 0,1,-1 mean????

Posted in Uncategorized | Leave a comment

special file directory called/proc???

what are these??/  

Posted in Uncategorized | Leave a comment

what is meaning of “i+1″ in pf statment

#include #define MONTHS 12 int main() { int days[MONTHS]={31,28,[4]=31,30,31,[1]=29}; int i; for(i=0;i<MONTHS;i++) printf("%2d %d\n",i+1,days[i]); return 0; }

Posted in Uncategorized | 1 Comment

what’s going on here????printing x=1 and y=1

#include<stdio.h> int main() { int x=1,y=1,z; if(y<0) if(y>0) x=3; else x=5; printf(“%d\n”,x); printf(“%d\n”,y); return 0;

Posted in Uncategorized | 2 Comments

both are printing same?????

 i=l=f=d=100/3; printf(“%.8g\t”,(double)i); printf(“%.8g\t”,(double)f); printf(“%.8g\t”,(double)d); d=f=l=i=100/3; printf(“%.8g\t”,(double)i); printf(“%.8g\t”,(double)f); printf(“%.8g\t”,(double)d);

Posted in Uncategorized | Leave a comment

output is 2 1 1.how??//

#include<stdio.h> int main() { int x,y,z; x=y=z=1; ++x||++y&&++z; printf(“%d\t%d\t%d\n”,x,y,z); return 0; }

Posted in Uncategorized | 1 Comment

3rd printf() is printing 4 why????

#include<stdio.h> int main() { int x=2,y,z; x*=3+2; printf(“%d\n”,x); x*=y=z=4; printf(“%d\n”,x); x=y==z; printf(“%d\n”,x); return 0; }

Posted in Uncategorized | 3 Comments