Skip to content

Instantly share code, notes, and snippets.

Last active January 19, 2021 22:54
What would you like to do?
gdb playground
#include <stdio.h>
void party_time();
int main(void){
char x[] = {'a','b','c','d'};
int length = sizeof x / sizeof x[0];
for(int i = 0; i < length-1; i++)
printf("%i\n", x[i]);
return 0;
void party_time(){
char* x = "Hello";
int y = 42;
char z = 'm';
printf("party time! %s | %i | %c\n", x, y, z);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment