Awesome q2a theme
0 votes
19 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 (558 points) | 19 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 Dec 2019
  1. Pratyush Priyam Kuan

    158 Points

  2. Vimal Patel

    118 Points

  3. avistein

    65 Points

  4. srestha

    54 Points

  5. Mk Utkarsh

    49 Points

  6. arya_stark

    46 Points

  7. goxul

    39 Points

  8. Sathuri Bharath

    34 Points

  9. vishal burnwal

    31 Points

  10. Shaik Masthan

    26 Points

Monthly Top User and those within 60% of his/her points will get a share of monthly revenue of GO subject to a minimum payout of Rs. 500. Current monthly budget for Top Users is Rs. 75.
2,314 questions
1,294 answers
6,591 comments
89,719 users