Awesome q2a theme
0 votes
26 views

Write the condition , for which following program will print “Hello World”

#include <stdio.h> 
int main()
{
    if()
    {
 printf("Hello ");
    }
    else
    {
 printf("World\n");
    }
 
    return 0;
}
in Programming by (757 points) | 26 views
+3
if( Printf("hello ") ==0 )
0

 Sir, Why both if and else executed? 

0
Here, if not executed.. Condition in the if executed and checked... Condition evaluated to false... So else part executed
0
I didn't observe correctly. Thanks

Please log in or register to answer this question.

Quick search syntax
tags tag:apple
author user:martin
title title:apple
content content:apple
exclude -tag:apple
force match +apple
views views:100
score score:10
answers answers:2
is accepted isaccepted:true
is closed isclosed:true
Welcome to GATE CSE Doubts, where you can ask questions and receive answers from other members of the community.
Top Users Jul 2020
  1. Shaik Masthan

    39 Points

  2. pritishc

    10 Points

  3. Charuji24

    9 Points

  4. hiteshpujari

    9 Points

  5. srestha

    9 Points

  6. fazin

    7 Points

  7. divi2719

    7 Points

  8. sthakur369

    6 Points

  9. Richa Agrawal

    6 Points

  10. gaurav2697

    6 Points

7,577 questions
1,785 answers
10,885 comments
90,506 users