EmbLogic's Blog

How to prints 1 to 100 without using loop and without using recursion!

Please explain how to prints 1 to 100 without using loop and without using recursion!!.

Posted in Data Structures with C | 3 Comments

BATCH 31- MDC & LINKLIST

Done with 4 bit compression and de-compression, link list and 3 bit compression. did try to rectify the issue in 3 bit de-compression by sending “/b” at last which has index no 4 in mastrarray, followed by EOF ,it is working if i m lft with less then 6 bit in an loop while 3 bit compression and this issue is only in reference to NDC=8 else i m done with 3 bit decompression to.

Thanks & Regards

Ritesh Agarwal

Posted in Uncategorized | 4 Comments

facing problems in fedora installation…….

sir i m trying to install fedora in my laptop since TWO weeks. i am facing new problems every time but unable to resolve it…
i tried different versions of fedora…but problem is still same…
ERROR DISCRIPTION– after completion of packages it shows “there is an error in installing boot -loader system may not be bootable”
2- some time it shows an unexpected bug has occured..
remark- windows 7 is working properly ……
regard’s
RANA BRIJENDRA SINGH (E-31)

Posted in Uncategorized | Tagged | Leave a comment

IPC

Successfully done IPC using Pipes
for Multiple req. client and multiple processing client.
I check for 100 clients running properly.

Posted in Uncategorized | Leave a comment

IPC

Successfully run IPC using pipes.
For one req. cllient one prosessing client.
Now trying for multiple req. client.

Posted in Uncategorized | Leave a comment

project_3 using pipe

RCS file: project.c,v
Working file: project.c
head: 1.8
branch:
locks: strict
access list:
symbolic names:
keyword substitution: kv
total revisions: 8; selected revisions: 8
description:
Created simple child and parent using fork.
—————————-
revision 1.8
date: 2013/05/30 11:03:51; author: jatinder; state: Exp; lines: +18 -8
At last server send data to corressponding client in synchronised manner.
—————————-
revision 1.7
date: 2013/05/30 10:15:41; author: jatinder; state: Exp; lines: +37 -17
Uptill now send data from cleint to server .
by using switch call processing client.
successfully send data from server to processing client.
processing client process read data process it and send to back to the server.
—————————-
revision 1.6
date: 2013/05/29 17:20:22; author: jatinder; state: Exp; lines: +20 -5
Called second fork and econd pipe.
—————————-
revision 1.5
date: 2013/05/29 13:08:02; author: jatinder; state: Exp; lines: +9 -8
Simply tested for data read from client1.
Succsfully tested.
—————————-
revision 1.4
1,0-1 Top

Posted in Uncategorized | Tagged | Leave a comment

Project 3: IPC

Done with fork , exec  , wait and starting the project with pipes.

Posted in Uncategorized | Leave a comment

Project 1

Implemented stacks and queues. But still pending with link lists.

Also done Multiple data Compression, created the master array and compressed file… decompression has to be still done.

Posted in Data Structures with C, Uncategorized | Leave a comment

Plz Explain how to solve this question?

int main(){
    int a[]={10,20,30,40};
    int i=3,x;
    x=1*a[--i]+2*a[--i]+3*a[--i];
    printf(“%d”,x);
}
Posted in Data Structures with C | Tagged | 4 Comments

Project_3 Assignment

1. WAP to convert lowercase latter in uppercase without calling the toupper().
2. WAP to execute the above program .
3. WAP to obtain the process id and parent id of the process.
4. Duplicate a process using fork() system call .Parent and the child must execute there own respective statements with in code segmemnt .
5.Create a resource allocator.
6.WAP tht demonstrates the creation Zombie and Orphan process.

Posted in Linux Internals and System Programming, Uncategorized | Tagged | Leave a comment

2d array

Hello Sir / ma’am

How to create 2d array using double pointer..??

Thanks & Regards

Posted in Uncategorized | Leave a comment

project 1 session 10

Hello sr,

Got the desired output of file compression, my rlog file and the output are given below.

output:- size=11
i=10
she laonr

file: ./fileio1.c,v
Working file: fileio1.c
head: 1.15
branch:
locks: strict
access list:
symbolic names:
keyword substitution: kv
total revisions: 15; selected revisions: 15
description:
there area some syntax error
—————————-
revision 1.15
date: 2013/05/14 16:10:35; author: ritesh; state: Exp; lines: +2 -2
make j=0 for every iteration
—————————-
revision 1.14
date: 2013/05/14 16:07:31; author: ritesh; state: Exp; lines: +2 -2
decleared flag outside the for loop
—————————-
revision 1.13
date: 2013/05/14 16:01:58; author: ritesh; state: Exp; lines: +1 -1
defined masterarray in realloc
—————————-
revision 1.12
date: 2013/05/14 16:00:11; author: ritesh; state: Exp; lines: +1 -1
*** empty log message ***
—————————-
revision 1.11
date: 2013/05/14 15:51:21; author: ritesh; state: Exp; lines: +2 -2
define size,j
—————————-
revision 1.10
date: 2013/05/14 15:49:14; author: ritesh; state: Exp; lines: +32 -7
using realloc function
—————————-
revision 1.9
date: 2013/05/14 11:03:25; author: ritesh; state: Exp; lines: +1 -1
*** empty log message ***
—————————-
revision 1.8
date: 2013/05/14 11:01:04; author: ritesh; state: Exp; lines: +1 -1
decreased the size of masterarray.
—————————-
revision 1.7
date: 2013/05/14 10:58:45; author: ritesh; state: Exp; lines: +7 -3
use malloc function
—————————-
revision 1.6
date: 2013/05/14 10:13:04; author: ritesh; state: Exp; lines: +1 -1
removed syntex error.
—————————-
revision 1.5
date: 2013/05/14 10:03:52; author: ritesh; state: Exp; lines: +1 -1
forget to use the close command
—————————-
revision 1.4
date: 2013/05/14 09:59:13; author: ritesh; state: Exp; lines: +1 -1
*** empty log message ***
—————————-
revision 1.3
date: 2013/05/14 09:58:13; author: ritesh; state: Exp; lines: +15 -11
*** empty log message ***
—————————-
revision 1.2
date: 2013/05/14 09:55:31; author: ritesh; state: Exp; lines: +1 -1
syntax error
—————————-
revision 1.1
date: 2013/05/14 09:54:47; author: ritesh; state: Exp;
Initial revision

Posted in Uncategorized | Tagged | Leave a comment

Character Driver Function Write & Read Successfully Implemented.

Posted in Character Driver | Tagged | Leave a comment

Project 1

Did successfully queue and stack.
Performed each and evey operation successfully like
1.first check queue/stack is created or not.
2.enetr new element after checing the queue/stack is full or not.
3.delete element after checking the queue/stack is empty or not.
4 display the queue/stack.
5. delete the queue/stcak after checking the queue the status of the queue/stack

Posted in Data Structures with C | Tagged | Leave a comment

Paraller port driver

Implement the compatibility mode.

Posted in Uncategorized | Leave a comment