What do you want to save?
Add Code snippet
New code examples
-
C 2021-10-13 13:54:12
c producer consumer pthread semaphore
/* buffer.h */ typedef int buffer_item; #define BUFFER_SIZE 5 /* main.c */ #include <stdlib.h> #include <stdio.h> #include <pthread.h> #include <semaphore.h> #include "buffer.h" #define RAND_DIVISOR 100000000 #define T... Add solution -
Other 2021-10-13 13:48:05
how to create to register with email in c language
//************************************** // Name: Login Using a Text File in C // Description:While I'm writing my book on C programming I came across with the idea to include in my book topic on File Handling in C. The idea is to write a program usi... Add solution -
C++ 2021-10-13 13:14:06
msdn parse command line
// Parsing_C_Commandline_args.c // ARGS.C illustrates the following variables used for accessing // command-line arguments and environment variables: // argc argv envp // #include <stdio.h> int main( int argc, // Number of strings in array argv ... Add solution -
C 2021-10-13 05:09:06
c program to perform transpose of a matrix
#include <stdio.h> int main() { int a[10][10], transpose[10][10], r, c, i, j; printf("Enter rows and columns: "); scanf("%d %d", &r, &c); // Assigning elements to the matrix printf("\nEnter matri... Add solution -
C 2021-10-12 14:12:10
c program for positive or negative
//Negative or positive #include <stdio.h> int main() { int Num; printf("Test Data: "); scanf("%d", &Num); //A negative number is less than 0, so the if suggests that if the program detects any number less tha... Add solution -
TypeScript 2021-10-12 10:22:08
how to find the slope of a line with two points in c
#include<stdio.h> void main() { float x1, y1, x2, y2; printf("Enter the x of point 1 \n",x1); scanf("%f",&x1); printf("Enter the y of point 1 \n",y1); scanf("%f",&y1); printf... Add solution