What do you want to save?
Add Code snippet
New code examples
-
Python 2022-01-22 11:35:26
string index
str = 'codegrepper' # str[start:end:step] #by default: start = 0, end = len(str), step = 1 print(str[:]) #codegrepper print(str[::]) #codegrepper print(str[5:]) #repper print(str[:8]) #codegrep print(str[::2]) #cdgepr print(str[2:8]) #degrep pri... Add solution -
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-06 11:11:09
How to clear previously echoed items in PHP
<?php ob_start(); echo 'a'; print 'b'; // some statement that removes all printed/echoed items ob_end_clean(); // this method clears all echos & test prints echo 'c'; // the final output is equal to 'c', not 'abc' ?> //s // https://... Add solution
Best helpers
Dodo mugs
+5
Lee lee
+5
Ulrich Stern
+5
S.Exchange
+5
LoganRoku
+5
Marc-Olivier
+5
Fcpenha
+5
Jothi Mai
+5
Sisima70
+5
Superam
+5
KidKai
+5
Yoyoyo
+5