Header Ads Widget

Responsive Advertisement

Ticker

10/recent/ticker-posts

Print a message without using Semicolons in c language

/* C language to Print a message without using semicolons */


This Question ask by Google ( Google Interview ) 

Understand algorithms

if ( Expression )  
Expression value = 0 or 1 ( True or False )
1. if ( 1 ) 
        {
          printf("Hello");
        }
Output :- Hello

2. if( 0 )
        {
        printf("Hello");
         } 
Output :- Null ( None ) 

{ } using Curly Braces open and close 

if ( Expression ) 
{
--------------------
__---------------
}

if ( Expression ) { }

Let's start


#include<stdio.h>
void main()
{
if ( printf("Google")){}
}

Output :- Google 

Post a Comment

0 Comments