EmbLogic's Blog

Author Archives: arjunchamyal

fibonacci series using pointer

1 #include 2 #include 3 int main() 4 { 5 int a,b,c,i,n; 6 b=0; 7 c=1; 8 printf(“enter the value \n”); 9 scanf(“%d”,&a); 10 int *d; 11 d=(int*)malloc(sizeof(a)); 12 *(d+0)=0; 13 *(d+1)=1; 14 i=2; 15 while(i<a) 16 { 17 *(d+i)=b+c;b=c;c=*(d+i); … Continue reading

Posted in Uncategorized | Leave a comment

fibonacci series using array

1 #include 2 int main() 3 { 4 int a,b,c,i,n; 5 b=0; 6 c=1; 7 printf(“enter the value \n”); 8 scanf(“%d”,&a); 9 int d[a]; 10 d[0]=0; 11 d[1]=1; 12 i=2; 13 printf(“%d”,d[0]); 14 while(i<a) 15 { 16 d[i]=b+c;b=c;c=d[i]; 17 i++; … Continue reading

Posted in Uncategorized | Leave a comment

IPC using MSG QUEUE

head 1.1; access; symbols; locks arjun:1.1; strict; comment @ * @; 1.1 date 2014.04.01.15.08.45; author arjun; state Exp; branches; next ; desc @we are using msg queue in ipc project @ 1.1 log @Initial revision @

Posted in Uncategorized | Leave a comment

RCS

IT is revision control system. With the help of this we can create an image file and we can change our data, and if we want back our previous data, we can do it with the help of rcs. To … Continue reading

Posted in Uncategorized | Leave a comment

IPC using FIFO

head 1.1; access; symbols; locks arjun:1.1; strict; comment @ * @; 1.1 date 2014.03.29.16.36.13; author arjun; state Exp; branches; next ; desc @ipc using fifo here we are using one fifo for requesting client to server we are able to … Continue reading

Posted in Uncategorized | Leave a comment

IPC

head 1.5; access; symbols; locks arjun:1.5; strict; comment @ * @; 1.5 date 2014.03.28.17.04.43; author arjun; state Exp; branches; next 1.4; 1.4 date 2014.03.27.15.56.06; author arjun; state Exp; branches; next 1.3; 1.3 date 2014.03.27.06.05.30; author arjun; state Exp; branches; next … Continue reading

Posted in Uncategorized | Leave a comment

IPC using PIPE

head 1.3; access; symbols; locks arjun:1.3; strict; comment @ * @; 1.3 date 2014.03.27.06.05.30; author arjun; state Exp; branches; next 1.2; 1.2 date 2014.03.25.08.06.10; author arjun; state Exp; branches; next 1.1; 1.1 date 2014.03.25.05.16.16; author arjun; state Exp; branches; next … Continue reading

Posted in Uncategorized | Leave a comment

IPC

head 1.1; access; symbols; locks arjun:1.1; strict; comment @ * @; 1.1 date 2014.03.21.15.02.57; author arjun; state Exp; branches; next ; desc @we are making a server which has 3 requesting client and 3 processing client but right now it … Continue reading

Posted in Uncategorized | Leave a comment

PIPE

we can use pipe between two related process only, related means both process has same pid in their past. after that we can read and write the data from any end. To make a related process between two unrelated process, … Continue reading

Posted in Uncategorized | Leave a comment

ipc using pipe

head 1.2; access; symbols; locks arjun:1.2; strict; comment @ * @; 1.2 date 2014.03.25.08.06.10; author arjun; state Exp; branches; next 1.1; 1.1 date 2014.03.25.05.16.16; author arjun; state Exp; branches; next ; desc @we are using 2 pipe for requesting client … Continue reading

Posted in Uncategorized | Leave a comment

C library function – atoi()

The library function atoi converts string argument to integer just like sscanf. This function returns the converted integer number as an int value. If no valid conversion could be performed, it returns zero.

Posted in Uncategorized | Leave a comment

What is ELF file format

It is Extensible linking format. It was chosen as standard binary file format for Unix like system . It is extensible and flexible by design so it is used in many operating systems and on many different platform.  

Posted in Uncategorized | Leave a comment