Answers for "hello world without semicolon in c"

C
1

hello world without semicolon in c

//there are many methods to print hello world or something else without semicolon:
//here are some....

#include<stdio.h>
int main()
{
	if(printf("hello world"))
  return 0;
}

//OR

#include<stdio.h>
int main()
{
	while(!printf("hello world")){}    //if '!' symbol is not placed then it will be an infinite loop
  return 0;
}

//OR

#include<stdio.h>
int main()
{
	switch(printf("hello world")){}
  return 0;
} //Code By Dungriyal
Posted by: Guest on October-10-2020

Code answers related to "C"

Browse Popular Code Answers by Language