What do you want to save?
Add Code snippet
New code examples
-
C 2021-11-17 20:29:24
how to pass an array value to a pthread 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 -
PHP 2021-11-16 22:40:13
block comment php
<?php // Author : https://www.codedweb.org/ // This is a single-line comment # This is also a single-line comment in unix and linux /* This is a Multi-lines comment block by this way you can add muliple lines on it. lines */ // You can also use ... Add solution