Ask coding questions

← Back to all posts
How to enter a command line in repl
BradenW

Hi, so I just want to know how to input a command line in repl. I'm aware that in C you simply type the program name followed by the arguments you want to give main. So how do I open the command line to begin with and what input should i give to run it.

This is the program I want to run:

#include <stdio.h>

// Taking argument as command line
int main(int argc, char *argv[])
{
int a, b, c;

}

Voters
19EUCB031Mukile
BradenW
Comments
hotnewtop
LeviHarrison

I'm not sure what you mean. If you want to see your program run in the command line, just hit run and wait. If you want to get user input though, check out this article: https://www.geeksforgeeks.org/basic-input-and-output-in-c/

theangryepicbanana

Hey, questions should go in the Ask board

BradenW

@theangryepicbanana oops, thanks for letting me know