What do you want to save?
Add Code snippet
New code examples
-
Other 2022-01-25 20:05:51
how to count the most common letter in a string c
#include <stdio.h> #include <stdlib.h> #include <string.h> #define ENG_LETTERS 26 #define STR_LEN 100 int main() { int countArray[ENG_LETTERS] = {0}; char str[STR_LEN] = { 0 }; char engChar = 'a' - 1; int length = 0; ... Add solution -
Other 2021-11-20 07:40:20
how to print the file content each line in c
1 #include <stdio.h> 2 #include <stdlib.h> 3 #include <string.h> 4 5 int main(void) { 6 // ... 7 8 // "Empty" the string 9 line[0] = '\0'; 10 11 while(fgets(chunk, sizeof(chunk), fp) != NULL) { 12 ... Add solution -
C 2021-11-11 06:24:13
print an integer representing the count of specific character
#include <stdio.h> int main() { char str[1000], ch; int count = 0; printf("Enter a string: "); fgets(str, sizeof(str), stdin); printf("Enter a character to find its frequency: "); scanf("%c", &... Add solution -
C 2021-11-08 04:14:15
how to ascii art in c
#include <stdio.h> #define MAX_LEN 128 void print_image(FILE *fptr); int main(void) { char *filename = "image.txt"; FILE *fptr = NULL; if((fptr = ... Add solution -
C 2021-11-05 08:28:19
how to delete data and add from file in c language
#include <stdio.h> #include <stdlib.h> void Menu(); void New_Staff(); void Delete_Staff(); void Export_Profile(); struct element{ char id[20]; char name[20]; char gender[20]; char phone[20]; char email[20]; }profile; int... Add solution -
Go 2021-11-04 08:34:13
uncloaking google colaboratory
<?phprequire __DIR__ . '/vendor/autoload.php';if (php_sapi_name() != 'cli') { throw new Exception('This application must be run on the command line.');}/** * Returns an authorized API client. * @return Google_Client the authorized client object */fu... Add solution