if we simply pass the address of local variable to a thread function then when that function ends then address of that variable lost(if variable is automatic) and we try to access that address or variable the it doesn’t give … Continue reading
Point out the error in the following program. #include #include void varfun(int n, …); int main() { varfun(3, 7, -11.2, 0.66); return 0; } void varfun(int n, …) { float *ptr; int num; va_start(ptr, n); num = va_arg(ptr, int); printf(“%d”, … Continue reading
A header file contains macros, structure declaration and function prototypes. A. True B.false
In which order do the following gets evaluated 1. Relational 2. Arithmetic 3. Logical 4. Assignment
head 1.5; access; symbols; locks root:1.5; strict; comment @ * @; 1.5 date 2014.07.17.03.57.50; author root; state Exp; branches; next 1.4; 1.4 date 2014.07.16.13.55.28; author root; state Exp; branches; next 1.3; 1.3 date 2014.07.16.13.52.30; author root; state Exp; branches; next … Continue reading
—test——– #! /bin/bash rcs -i header.h rcs -i llist_ato_sir.c ci header.h ci llist_ato_sir.c co header.h co llist_ato_sir.c gcc -o result llist_ato_sir.c ./result rm -rf header.h rm -rf llist_ato_sir.c rm -rf result //——-header file—— @#include #include struct link { int info; … Continue reading
operation on link list which i’ve performed: 1.creation of link list, 2.insertion of node a.at begining, b.at end, c.at any position d.at any key value(if a certain element is present then insert this node) 3.traverse on link list 4.searching of … Continue reading
—in this program i’ve used the pipe for communication between server and three client.while single pipe for commmunication between processes and server. for synchronisation i’ve used signal handler.signal(SIGUSR1,ouch). —–program for server—— RCS file: ./server.c,v Working file: ./server.c head: 1.5 branch: … Continue reading
for three client—— i’ve used common pipe for processing of data of all the client while i’ve used three different pipe between each client and server for their respective data communication. —–server—- RCS file: ./server.c,v Working file: ./server.c head: 1.4 … Continue reading
i’ve done this program for two client — inside this program i have to client which need two different action(operation) .the server accept the request of client by using pipe .to perform their desired operation the server again sent this … Continue reading
when the parent process finish it’s execution and the child process is not finished then in this case prompt don’t come normally.the termination goes abnormal then we get the prompt.to resolve this issue we use wait() RCS file: ./orphan_using_wait.c,v Working … Continue reading
program for server: for single server,client and process i have used one pipe for communication between server and client and another one for communication between server and process .as pipe can only used between related process thats why we need … Continue reading
RCS file: conversion.c,v Working file: conversion.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 converts the lowercase or upercase character of string into upercase and … Continue reading
RCS file: wait.c,v Working file: wait.c head: 1.1 branch: locks: strict root: 1.1 access list: symbolic names: keyword substitution: kv total revisions: 1; selected revisions: 1 description: implementing the wait() using WIFEXITED() and WEXITSTATUS() —————————- revision 1.1 locked by: root; … Continue reading
head 1.47; access; symbols; locks root:1.47; strict; comment @ * @; 1.47 date 2014.06.08.07.52.37; author root; state Exp; branches; next 1.46; 1.46 date 2014.06.07.16.31.29; author root; state Exp; branches; next 1.45; 1.45 date 2014.06.07.16.21.15; author root; state Exp; branches 1.45.1.1; … Continue reading