String Functions in C program

// using strlen length of word eg:wildcat ans: 7 #include<stdio.h> #include<conio.h> #include<string.h> main() { char msg[20]; int len; printf("Input message:"); scanf("%s",msg); { len=strlen(msg); printf("Length of the message=%d",len); } } // using strrev eg: WILDCAT Ans: TACDLIW #include<stdio.h> #include<conio.h> #include<string.h> main() …

Read More........

Library Management System in C Program

#include<windows.h> #include<stdio.h> #include<conio.h> #include <stdlib.h> #include<string.h> //contains strcmp(),strcpy(),strlen(),etc #include<ctype.h> //contains toupper(), tolower(),etc #include<dos.h> //contains _dos_getdate #include<time.h> #define RETURNTIME 15 char catagories[][15]={"Computers","Management","Science","Aviation","Humanities","Architecture"}; void returnfunc(void); void mainmenu(void); void addbooks(void); void deletebooks(void); void editbooks(void); void searchbooks(void); void issuebooks(void); void viewbooks(void); void closeapplication(void); int …

Read More........

ATM transaction in C program

#include <stdio.h> unsigned long amount=1000, deposit, withdraw; int choice, pin, k; char transaction ='y'; main() { while (pin != 1234) { printf("ENTER YOUR SECRET PIN NUMBER:"); scanf("%d", &pin); if (pin != 1234) printf("PLEASE ENTER VALID PASSWORD\n"); } do { printf("\xB2\xB2\xB2\xB2\xB2\xB2\xB2\xB2Welcome …

Read More........

Product of two matrix in C program

//product of two matrix #include <stdio.h> #define MAXROWS 10 #define MAXCOLS 10 void readMatrix(int arr[][MAXCOLS], int m, int n); void printMatrix(int arr[][MAXCOLS], int m, int n); void productMatrix(int array1[][MAXCOLS], int array2[][MAXCOLS], int array3[][MAXCOLS], int m, int n); main() { int …

Read More........