Learn about C Program to Print Hello World Without Using Semicolon(Command-line Arguments) in the below code example. Also refer the comments in the code snippet to get a detailed view about what’s actually happening.
The main function takes two arguments, which are referred to as command-line arguments.
int main(int argc, char *argv[])
In this case, argc counts the amount of commands and argv stores the commands entered by the end-user.
Contents
C Program to Print Hello World Without Using Semicolon(Command-line Arguments)
#include<stdio.h>
int main(int argc, char *argv[printf("Hello World")])
{}
Output:
Hello world
Hope above code works for you and Refer the below Related Codes to gain more insights. Happy coding and come back again.
Similar Codes :
Using Macros C Program to Print Hello World without Using a Semicolon
C Program to Print Hello World Without Using Semicolon(printf and switch conditional statement)