int main() { static int i=5; if(–i){ main(); printf(“%d “,i); } } answer is 0000
head 1.1; access; symbols; locks root:1.1; strict; comment @ * @; 1.1 date 2014.03.23.22.24.26; author root; state Exp; branches; next ; desc @create linklist . @ 1.1 log @Initial revision @ text @#include #include #include struct node { int roll; … Continue reading
head 1.1; access; symbols; locks root:1.1; strict; comment @ * @; 1.1 date 2014.03.23.22.24.26; author root; state Exp; branches; next ; desc @create linklist . @ 1.1 log @Initial revision @ text @#include<stdio.h> #include<stdlib.h> #include<string.h> struct node { int roll; … Continue reading
head 1.1; access; symbols; locks; strict; comment @ * @; 1.1 date 2014.03.23.21.53.35; author root; state Exp; branches; next ; desc @master array with compression @ 1.1 log @Initial revision @ text @#include<stdio.h> #include<string.h> #include<fcntl.h> int main() { int i=0,j,len,maslen=1,fd,ret; … Continue reading
1 head 1.1; 2 access; 3 symbols; 4 locks 5 root:1.1; strict; 6 comment @ * @; 7 8 9 1.1 10 date 2014.03.21.01.03.45; author root; state Exp; 11 branches; 12 next ; 13 14 15 desc 16 @counts the … Continue reading
head 1.1; access; symbols; locks; strict; comment @ * @; 1.1 date 2014.03.23.21.53.35; author root; state Exp; branches; next ; desc @master array with compression @ 1.1 log @Initial revision @ text @#include #include #include int main() { int i=0,j,len,maslen=1,fd,ret; … Continue reading
1 head 1.1; 2 access; 3 symbols; 4 locks 5 root:1.1; strict; 6 comment @ * @; 7 8 9 1.1 10 date 2014.03.21.01.03.45; author root; state Exp; 11 branches; 12 next ; 13 14 15 desc 16 @counts the … Continue reading
In C/C++, when a character array is initialized with a double quoted string and array size is not specified, compiler automatically allocates one extra space for string terminator ‘?. For example, following program prints 6 as output. #include int main() … Continue reading
Memory management is the most important parts of the operating system.early days of computing, there has been a need for more memory than exists physically in a system.Virtual memory makes the system appear to have more memory than it actually … Continue reading
Create a file that contain all macros, that is used by by user as a command this file called ioctl.h After creating ioctl.h ,you create a file ioctl.c that file work for kernel space, that file contain all command specific … Continue reading
#include #include #include struct node { int roll; char name[20]; struct node *next; }; void creat_node(struct node * temp) { struct node *start; temp->next=malloc(sizeof(struct node)); temp=temp->next; printf(“\nentrer the roll”); scanf(“%d”,&temp->roll); printf(“enter the name \n”); scanf(“%s”,temp->name); temp->next=NULL; } void display_node(struct node … Continue reading
Successfully implemented all synchronization techniques. now implementing ioctl.
Pipes are used to establish communication between no. of processes. creating a pipe in c: To create a simple pipe with C, we make use of the pipe() system call. It takes a single argument, which is an array of … Continue reading