EmbLogic's Blog

Category Archives: Uncategorized

Sort the matrix using double pointer

RCS file: sortmat.c,v Working file: sortmat.c head: 1.1 branch: locks: strict vishal: 1.1 access list: symbolic names: keyword substitution: kv total revisions: 1; selected revisions: 1 description: Sort the matrix using double pointer —————————- revision 1.1 locked by: vishal; date: … Continue reading

Posted in Uncategorized | Leave a comment

Read and write the data using pipe

RCS file: header.h,v Working file: header.h head: 1.1 branch: locks: strict vishal: 1.1 access list: symbolic names: keyword substitution: kv total revisions: 1; selected revisions: 1 description: define structer in header.h —————————- revision 1.1 locked by: vishal; date: 2015/02/27 19:38:05; … Continue reading

Posted in Uncategorized | Leave a comment

Program that reads until 0 is entered & reports even , odd integers & their averages.

#include 2 int main() 3 { 4 int num=0,evn=0,odd=0,even_sum=0,odd_sum=0; 5 6 7 for(;;) 8 { 9 printf(“enter the numbers\n”); 10 scanf(“%d”, &num); 11 12 if(num==0) 13 { 14 break; 15 } 16 17 else if(num%2==0) 18 { 19 evn++; 20 … Continue reading

Posted in Uncategorized | Leave a comment

Program representing zombie state

RCS file: zoombie.c,v Working file: zoombie.c head: 1.1 branch: locks: strict root: 1.1 access list: symbolic names: keyword substitution: kv total revisions: 1;    selected revisions: 1 description: Program describes zombie state where the child process waits for parent process for … Continue reading

Posted in Uncategorized | Leave a comment

Program representing Zombie state

RCS file: zombie.c,v Working file: zombie.c head: 1.1 branch: locks: strict root: 1.1 access list: symbolic names: keyword substitution: kv total revisions: 1; selected revisions: 1 description: Program describes the zombie state where the child process waits for the parent … Continue reading

Posted in Uncategorized | Leave a comment

replacing the file

RCS file: replace.c,v Working file: replace.c head: 1.4 branch: locks: strict root: 1.4 access list: symbolic names: keyword substitution: kv total revisions: 4; selected revisions: 4 description: include all the header file which are required then take a file descriptor … Continue reading

Posted in Uncategorized | Leave a comment

Implementation of execl() and fork() for writing into textfile from the child process

RCS file: replacing.c,v Working file: replacing.c head: 1.3 branch: locks: strict root: 1.3 access list: symbolic names: keyword substitution: kv total revisions: 3; selected revisions: 3 description: In this program we have used fork() —————————- revision 1.3 locked by: root; … Continue reading

Posted in Uncategorized | Leave a comment

Getting the pid and ppid of current process and invoked process

RCS file: uppercase.c,v Working file: uppercase.c head: 1.1 branch: locks: strict root: 1.1 access list: symbolic names: keyword substitution: kv total revisions: 1;    selected revisions: 1 description: This program is to convert a lower case character to upper case character. … Continue reading

Posted in Uncategorized | Leave a comment

Getting the pid and ppid of the current process and invoked process

RCS file: upper_case.c,v Working file: upper_case.c head: 1.1 branch: locks: strict root: 1.1 access list: symbolic names: keyword substitution: kv total revisions: 1; selected revisions: 1 description: In this program we have converted the lower case character into upper case … Continue reading

Posted in Uncategorized | Leave a comment

Implementing system call i.e system()

RCS file: uppercase.c,v Working file: uppercase.c head: 1.1 branch: locks: strict root: 1.1 access list: symbolic names: keyword substitution: kv total revisions: 1;    selected revisions: 1 description: This program is to convert a lower case character to upper case character. … Continue reading

Posted in Uncategorized | Leave a comment

Implementating system call i.e sytem()

RCS file: upper_case.c,v Working file: upper_case.c head: 1.1 branch: locks: strict root: 1.1 access list: symbolic names: keyword substitution: kv total revisions: 1; selected revisions: 1 description: In this program we have converted the lower case character into upper case … Continue reading

Posted in Uncategorized | Leave a comment

lower case character to upper case character

RCS file: uppercase.c,v Working file: uppercase.c head: 1.1 branch: locks: strict root: 1.1 access list: symbolic names: keyword substitution: kv total revisions: 1;    selected revisions: 1 description: This program is to convert a lower case character to upper case character. … Continue reading

Posted in Uncategorized | Leave a comment

Lower Case Character into Upper Case Character

RCS file: upper_case.c,v Working file: upper_case.c head: 1.1 branch: locks: strict root: 1.1 access list: symbolic names: keyword substitution: kv total revisions: 1; selected revisions: 1 description: In this program we have converted the lower case character into upper case … Continue reading

Posted in Uncategorized | Leave a comment

Computing real roots of quadratic equation.

RCS file: quad.c,v Working file: quad.c head: 1.1 branch: locks: strict root: 1.1 access list: symbolic names: keyword substitution: kv total revisions: 1; selected revisions: 1 description: —————————- revision 1.1 locked by: root; date: 2015/02/25 06:22:57; author: root; state: Exp; … Continue reading

Posted in Uncategorized | Leave a comment

Decimal to binary conversion

1 #include <stdio.h> 2 int main() 3 { 4         int i,a,b; 5         printf(“enter a decimal number\n”); 6         scanf(“%d”, &a); 7         for(i=0;i<=32;i++) 8         { 9                 b=a%2; 10                 printf(“binary number is %d\n”, b); 11                 a=a/2; 12         } 13         return 0; 14 } … Continue reading

Posted in Uncategorized | Leave a comment