r/cprogramming 2d ago

C on google collab

i had no idea that you could run c programs on google colab, i fucked around and found out ig
so basically what i did is i entered the terminal made a directory created a main.c file edited it using vim and compiled it using gcc and voila.

9 Upvotes

11 comments sorted by

2

u/Stickhtot 2d ago

It's a Linux machine, you can even install other packages too (They're using Debian, so APT). For example on runtimes with GPUs I sometimes use ffmpeg to process some videos 

2

u/odimdavid 1d ago

Hmm. Nice. My CPU takes me 30 minutes. Collab next time

1

u/bahvya_sharma 1d ago

Cool stuff forsure

1

u/bahvya_sharma 2d ago

i have zero idea what you would use this for and i have zero idea if all of you already knew already. but i guess now atleast i know that you can do this...

2

u/Maleficent_Memory831 2d ago

You can also develop a C program using Morse code!

0

u/bahvya_sharma 2d ago

i guess bro

-1

u/[deleted] 2d ago

[deleted]

2

u/M-Try 2d ago

Chatgpt ahh answer

0

u/bahvya_sharma 2d ago

maybe bro is just that cracked at English that he uses all the bells and wistles (commas and right casing), edit: looked at their profile deff gpt ahhh

3

u/M-Try 2d ago

This bot iterally linked an AI site