README.md

December 4, 2022 ยท View on GitHub

A basic code for program without using semicolon

Description

Please, rate this code, Your vote - our motivation by Shantanu Bansal

This is a tricky c/c++ program or code to help writting a program without using (;) semicolon.

In this example, program will print a line without using semicolon.

Help mail:

shantanubansal@indiatimes.com

More Info

Submitted On
ByShantanu Bansal
LevelIntermediate
User Rating3.4 (75 globes from 22 users)
CompatibilityC, C++ (general), Borland C++, UNIX C++
CategoryMiscellaneous
WorldC / C++
Archive File

Source Code

/* c/c++ tricky code */
/* Author - Shantanu Bansal */
/* for any type of assistance mail me at shantanubansal@indiatimes.com, shantanubansal@hotmail.com*/
/*
 This is a tricky c/c++ code to help writting a program without using semicolon.
 In this example, program will print a line without using semicolon.
 */
# include<stdio.h>
# include<conio.h>
void main()
{
	if ( printf("Program without semicolon\n"))
	{
		if ( printf("successful"))
		{}
	}
	else
	{
		if ( printf("Failure"))
		{}
	}
}