Extended Euclidean Algorithm for Modular Multiplicative Inverse > C Program Cryptography and System Security Program: #include<stdio.h> #include<conio.h> void main() {
Euclidean Algorithm to find GCD > C Program Cryptography and Network Security Program: #include<stdio.h> #include<conio.h> void main() { int a,b,x; clrscr(); printf("Enter 1st Number "); scanf("%d",&a); printf("Enter 2nd Number "); scanf("%d",&b); x=gcd(a,b); printf("GCD is %d",x); getch(); }
To create and use program Libraries in Linux > C Program System Programming and Compiler Construction main.c #include<stdio.h> #include<math.h> #include "shared.h" int main() { double result=5.0; result=factorial(result); printf("\n The factorial is [%g] \n",result); return 0; }
To implement Recursive Descent Parser > C Program System Programming and Compiler Construction Program: #include"stdio.h" #include"conio.h" #include"string.h" #include"stdlib.h" #include"ctype.h"
Program to design and implement Pass 1 of 2 Pass Assembler > C and Assembly Program System programming and Compiler Construction .asm code: PG1 START 1000 USING *, 15 L 1, FOUR A 1, ='5' ST 1, TEMP A 1, ='4' FOUR DC ...
To copy text from one file to another file > C Program System Programming and Compiler Construction #include<stdio.h> #include<conio.h> void main() { FILE *fp1, *fp2; char ch, fname1[20], fname2[20];
Operating Systems Program using fork() to get the Parent and Child Process ID #include<stdio.h> #include<string.h> #include<fcntl.h> #include<sys/stat.h> #include<sys/types.h> int main() { int pid, p1, c;
Operating Systems I/O System Calls > C Programs Program 1 #include<stdio.h> #include<stdlib.h> #include<sys/types.h> #include<sys/stat.h> #include<unistd.h> #include<errno.h> int main(int argc,char*argv[]) { pid_t pid; pid=fork();