What do you want to save?
Add Code snippet
New code examples
-
C 2021-09-26 00:40:02
how to pass an array to a thread in c?
void* my_Func(void *received_arr_Val){ int single_val = (int *)received_arr_Val; printf("Value: %d\n", single_val); //Now use single_val as you wish } //In main: int values[n]; pthread_create(&thread, NULL, my_Func, values[i]); ... Add solution -
Shell/Bash 2021-09-25 22:51:03
tcp traffic analysis linux command line mb per second
#!/usr/bin/perl # traffic analysis script using tcpdump use strict; use warnings; use Time::HiRes; my $reporting_interval = 10.0; # seconds my $bytes_this_interval = 0; my $start_time = [Time::HiRes::gettimeofday()]; STDOUT->autoflush(1); while (<... Add solution -
C 2021-09-25 13:16:02
lru page replacement algorithm in c
/* This code is contributed by : Tanishq Vyas (github : https://github.com/tanishqvyas ) */ #include <stdlib.h> #include <stdio.h> int main(int argc, char const *argv[]) { int length; int num_frames; printf("Enter the ... Add solution -
C 2021-09-24 18:41:03
insertion singly linked list in c
/** * C program to insert a new node at the beginning of a Singly Linked List */ #include <stdio.h> #include <stdlib.h> /* Structure of a node */ struct node { int data; // Data struct node *next; // Address }*head; v... Add solution -
PHP 2021-09-24 14:55:03
how to solve php mysqli_query function problem does not execute
<?php $con = mysqli_connect("localhost", "root", "", "test"); if (mysqli_connect_errno()) { printf("Connect failed: %s\n", mysqli_connect_error()); exit(); } $query = "INSERT INTO files VALUES... Add solution