Browse All
Alphabetical listing with fast deep pagination.
1197283 items • Page 46 / 23946
#include #include typedef struct Node { int data; /* Could
#include <stdio.h> #include <stdlib.h> typedef struct Node { int data; /* Could put any kind of data here*/ struct Node *next; /* Self-referential requi…
#include #include void pointers(int *x, int *y, int z, int*
#include <stdio.h> #include <stdlib.h> void pointers(int *x, int *y, int z, int* w) { printf(" In pointers, x[2], *y, z, w: %d, %d, %d, %d", x[2], *y, z, *w); x[2] = 7…
#include #include void print_arr(int nums[], int esize); in
#include <stdio.h> #include <stdlib.h> void print_arr(int nums[], int esize); int main () { printf(" "); const int SIZE = 4; // dynamically allocate an array of size S…
#include #include #define SIZE 15 void sort(float num[], in
#include <stdio.h> #include <string.h> #define SIZE 15 void sort(float num[], int lo, int hi); int main() { int i,ok,num[SIZE],num1[SIZE],num2[SIZE]; char str[25]; uns…
#include #include #include #define DIM1 6 #defin
#include <stdio.h> #include <string.h> #include <stdlib.h> #define DIM1 6 #define DIM2 8 #define NAME_LEN 20 #define qsort NOT_ALLOWED void Geninsert(void *, siz…
#include #include #include #define MAX_FLIGHTCOD
#include <stdio.h> #include <string.h> #include <stdlib.h> #define MAX_FLIGHTCODE_LEN 6 #define MAX_CITYCODE_LEN 3 #define MAX_NUM_FLIGHTS 5 #define DB_NAME "dat…
#include #include #include // Read before you st
#include <stdio.h> #include <string.h> #include <stdlib.h> // Read before you start: // Do not modify any part of this program that you are given. Doing so may c…
#include #include #include //Library needed for
#include <stdio.h> #include <string.h> #include <stdlib.h> //Library needed for exit(0) int main() { int textFile; FILE *fp; fp = fopen("Proj3input.txt", "r"); i…
#include #include #include int main() { //Declar
#include <stdio.h> #include <string.h> #include <stdlib.h> int main() { //Declare all required variables char classes[6][20]; int timeHour[6]; int timeMinute[6];…
#include #include #pragma warning(disable : 4996) // Read b
#include <stdio.h> #include <string.h> #pragma warning(disable : 4996) // Read before you start: // Do not modify any part of this program that you are given. Doing so…
#include #include #pragma warning(disable : 4996) // Read b
#include <stdio.h> #include <string.h> #pragma warning(disable : 4996) // Read before you start: // Do not modify any part of this program that you are given. Doing so…
#include #include #pragma warning(disable : 4996) // compil
#include <stdio.h> #include <string.h> #pragma warning(disable : 4996) // compiler directive for Visual Studio only // Read before you start: // You are given a partia…
#include #include // Read before you start: // Do not modif
#include <stdio.h> #include <string.h> // Read before you start: // Do not modify any part of this program that you are given. Doing so may cause you to fail automated…
#include #include // Read before you start: // Do not modif
#include <stdio.h> #include <string.h> // Read before you start: // Do not modify any part of this program that you are given. Doing so may cause you to fail automated…
#include #include //*** Sorts an array of strings in place
#include <stdio.h> #include <string.h> //*** Sorts an array of strings in place ***// // // Inputs: // strings: the array of strings, each entry is type char * // leng…
#include #include int getche(void); char* getDateAndTime();
#include <stdio.h> #include <string.h> int getche(void); char* getDateAndTime(); long DecimaltoBinary(long n); int main(){ long Decimal = 240; do { printf("Enter an In…
#include #include main() { int i,a; char s[3],t[2]; s[0]=\'
#include <stdio.h> #include <string.h> main() { int i,a; char s[3],t[2]; s[0]='B'; s[1]='c'; s[2]=''; t[0]='B'; t[1]=''; i=0; a=0; while (a == 0) { if (s[i] < t[i])…
#include #include void ReverseArray(char* apples); int main
#include <stdio.h> #include <string.h> void ReverseArray(char* apples); int main() { int i; char tires[80]; strcpy(tires,"Whitewalls are best"); printf ("Tires is loca…
#include #include // if you need string library int main (
#include <stdio.h> #include <strings.h> // if you need string library int main (int argc, char *argv[]) { // If argv[1] exists, set filename to it, otherwise set // fi…
#include #include #include int main (int args
#include <stdio.h> #include <sys/types.h> #include <unistd.h> int main (int args, char *argv[]) { pid_t fork_return; pid_t pid; pid=getpid(); fork_return = fork(…
#include #include #define MAX LINE 80 /* The maximum length
#include <stdio.h> #include <unistd.h> #define MAX LINE 80 /* The maximum length command */ int main(void) { char *args[MAX LINE/2 + 1]; /* command line arguments */ i…
#include #include #define PROCS 5 int main () { int pid, pr
#include <stdio.h> #include <unistd.h> #define PROCS 5 int main () { int pid, proc, checkTotal, pidTotal = 0, reportFds[2]; pipe(reportFds); /* Create PROCS c…
#include #include \"readline.h\" #include \"equipment.h\" int main(voi
#include <stdio.h> #include "readline.h" #include "equipment.h" int main(void) { char code; struct equipment *e_list = NULL; printf("Operation Code: a for appending to the l…
#include #include #include #include long l
#include <stdio.h> #include<stdlib.h> #include<string.h> #include<math.h> long long int x , x1 , y , z , i , p , result , j ; char op , str1[64] , str2[64]…
#include #include int DisplayMenu(){ int choice; printf(\"Me
#include <stdio.h> #include<stdlib.h> int DisplayMenu(){ int choice; printf("Menu "); printf("1.Display array "); printf("2.Multiply each element in array by 2 "); pri…
#include #pragma warning(disable : 4996) // CSE 240 Fall 2017 Homework
#include <stdio.h> #pragma warning(disable : 4996) // CSE 240 Fall 2017 Homework 1 Question 3 (25 points) // Before starting this assignment, please compile and run this pro…
#include /* * Asks the user to enter a fraction, and then reducesthe *
#include <stdio.h> /* * Asks the user to enter a fraction, and then reducesthe * fractions to its lowest terms. * Returns the integer results to the caller. */ void get_frac…
#include double evaluate(double p[], double x, int size) { double tota
#include <stdio.h> double evaluate(double p[], double x, int size) { double total = 0; int i = 0; double exp = 1; while(i < size) { total += p[i]*exp; e…
#include enum eCut { Round, Princess, Emerald, Oval, Marquise, Pear, C
#include <stdio.h> enum eCut { Round, Princess, Emerald, Oval, Marquise, Pear, Cushion, Radiant, Asscher, Heart }; enum eClarity { F, IF,…
#include float calculate_percent(float score, float max_score); double
#include <stdio.h> float calculate_percent(float score, float max_score); double getAvg (float score0, float score1, float score2); char getGradeLetter (float score…
#include float factorial(float num) { float result = 1; for(int i = 1;
#include <stdio.h> float factorial(float num) { float result = 1; for(int i = 1; i < num; i ++) result *= i; return result; } void bells(i…
#include float total(float,float,float); int units; int main() { int c
#include <stdio.h> float total(float,float,float); int units; int main() { int ch,c0ch1;//c0ch1 is the cases integer variable,ch is the choice for selecting session fl…
#include int BinaryDiff(int, int); int main(void) { int H[9] = {1, 2,
#include <stdio.h> int BinaryDiff(int, int); int main(void) { int H[9] = {1, 2, 3, 4, 5, 6, 7, 8, 9}; int V[9] = {10, 11, 12, 13, 14, 15, 16, 17, 19}; int PixPhase[9],…
#include int gcd_method(int m, int n) { if (n == 0) { return m; } else
#include <stdio.h> int gcd_method(int m, int n) { if (n == 0) { return m; } else if (m >= n && n > 0) { return gcd_method(n, (m % n)); } } int main(void) { int…
#include int main ( ) { int feet, inches, low_weight,high_weight; floa
#include <stdio.h> int main ( ) { int feet, inches, low_weight,high_weight; float height_in_inches, bmi, w, x, y, z; printf("Please enter height in feet andinche…
#include int main() { int n, i; unsigned long long factorial = 1; prin
#include <stdio.h> int main() { int n, i; unsigned long long factorial = 1; printf("Enter an integer: "); scanf("%d",&n); //Taking input and storing in 'n' // If user en…
#include int main() { while(1) { char str[50]={0}; int num =0; char fi
#include <stdio.h> int main() { while(1) { char str[50]={0}; int num =0; char final_val; printf("Enter an abitrarilt long string, ending with carriage return > "); scanf(…
#include int main() { while(1) { char str[50]={0}; int num =0; char fi
#include <stdio.h> int main() { while(1) { char str[50]={0}; int num =0; char final_val; printf("Enter an abitrarilt long string, ending with carriage return > "); scanf(…
#include int main(void) ( int hundred_dollars; int fifty_dollars; int
#include <stdio.h> int main(void) ( int hundred_dollars; int fifty_dollars; int twenty_dollars; int ten_dollars; int five_dollars; int one_dollar; …
#include int main(void) { char input[15]; printf(\"Enter an alphanumer
#include <stdio.h> int main(void) { char input[15]; printf("Enter an alphanumeric phone number: "); int i = 0; for (i = 0; i < 15; i += 1){ scanf("%c", &input[i]); } …
#include int main(void) { float a, b, c, d, e, f, g, h, i, j; printf(\
#include <stdio.h> int main(void) { float a, b, c, d, e, f, g, h, i, j; printf("Please enter 10 numbers: "); scanf("%f %f %f %f %f %f %f %f %f %f", &a, &b, &c, &…
#include int main(void) { int hourlyWage = 0; int weeklyHours = 0; int
#include <stdio.h> int main(void) { int hourlyWage = 0; int weeklyHours = 0; int weeklySalary = 0; int overtimeHours = 0; const int WEEKLY_LIMIT = 40; printf("Enter hourly w…
#include int main(void) { int i,j; printf(\"Cross-Sectional Area\ \");
#include <stdio.h> int main(void) { int i,j; printf("Cross-Sectional Area "); for(i=2;i<=10;i=i+2) { for(j=2;j<=12;j=j+2) { printf("%d X %d ",i,j); } } printf("Moment …
#include int main(void) { int i; char line1[80], line2[80]; void readL
#include <stdio.h> int main(void) { int i; char line1[80], line2[80]; void readLine(char buffer[]); printf("Type in string to be searched (up to 80 characters):"); for (i = …
#include int main(void) { int twoDigitNum; printf(\"Enter a two digit
#include <stdio.h> int main(void) { int twoDigitNum; printf("Enter a two digit number"); scanf("%d", &twoDigitNum); switch (twoDigitNum){ case 10:printf("ten");…
#include int main(void) { int userAgeYears = 0; int userAgeDays = 0; p
#include <stdio.h> int main(void) { int userAgeYears = 0; int userAgeDays = 0; printf("Enter your age in years: "); scanf("%d", &userAgeYears); userAgeDay…
#include int main(void) { int userinput; int fib3, fib1 = 1, fib2 = 1;
#include <stdio.h> int main(void) { int userinput; int fib3, fib1 = 1, fib2 = 1; printf("Enter a limit on the largest number to be displayed: "); scanf("%d",&userinput);…
#include int main(void) { int userinput; int fib3, fib1 = 1, fib2 = 1;
#include <stdio.h> int main(void) { int userinput; int fib3, fib1 = 1, fib2 = 1; printf(" Enter a limit on the largest number to be displayed: "); scanf("%d", &userinput…
#include int oneCount (char n); int main ( ) { printf (\"# 1-bits in b
#include <stdio.h> int oneCount (char n); int main ( ) { printf ("# 1-bits in base 2 rep of %u = %d ", 0, oneCount((char)0)); …
#include main () { int numSalaries=0, counter=0, salary[100], salarySu
#include <stdio.h> main () { int numSalaries=0, counter=0, salary[100], salarySum=0, averageSalary=0; printf( "This program calculates the average of as many salaries you wi…