myCompiler myCompiler
Deutsch English Español Français Italiano 日本語 한국어 Nederlands Polski Português
Recent
Login Sign up
Recent
Login Sign up
G

@genie

24.02.16. pointer basic

C
2 years ago
#include <stdio.h> #include <stddef.h> int main() { int count = 10, x; int *int_pointer; int_pointer = &count; //store adr of int x = *int_pointer; //assign value of count

24.02.16. string function: reverse order

C
2 years ago
#include <stdio.h> #include <string.h> void reverse(char *userArray); #define MAX_LENGTH 50 int main() { char test[] = "TAEJONG"; printf("original message: %s\n", test); reverse(test); printf("reversed message: %s\n", test);

24.02.16 string functions

C
2 years ago
#include <stdio.h> #include <string.h> int main() { char src[40], dest[12]; memset(dest, '\0', sizeof(dest)); strcpy(src, "hello how are you"); strncpy(dest, src, 10); //9 for string, 1 for the \0

240216 const basic

C
2 years ago
#include <stdio.h> #include <stdlib.h> char getWord(); int main() { char *word = getWord(); if(word != NULL){ printf("you entered:%s\n", word) free(word);
Previous Next page

Supported languages

Deno JavaScript NodeJS Python Ruby Go C C++ Java C# TypeScript PHP Bash R Octave (MATLAB) Fortran Lua Erlang SQL MySQL MongoDB Clojure D Perl Kotlin Swift Rust Assembly
© 2026 mycompiler.io
Terms of service Privacy policy Contact us