How to print "I Love My India" without using semi colon?

Answers were Sorted based on User's Feedback



How to print "I Love My India" without using semi colon?..

Answer / shamik

#include<stdio.h>
void main()
{
if(printf("I love my India"))
getch();
}

Is This Answer Correct ?    38 Yes 4 No

How to print "I Love My India" without using semi colon?..

Answer / sanjay

On VC++ and on Unix. Dont use getch();
as it was clearly mentioned for not to use ;

#include<stdio.h>
main()
{
if(printf("I love my India"))
}

Is This Answer Correct ?    8 Yes 1 No

How to print "I Love My India" without using semi colon?..

Answer / sam

#include<stdio.h>
void main()
{
clrscr();
if(printf("\"I love my India\""))
while(!kbhit()\\why use this semi colon

}


so it is wrong

Is This Answer Correct ?    0 Yes 1 No

How to print "I Love My India" without using semi colon?..

Answer / manoj singh

#include<stdio.h>
void main()
{
clrscr();
if(printf("\"I love my India\""))
while(!kbhit());
}

Is This Answer Correct ?    4 Yes 6 No

Post New Answer

More C Interview Questions

Disadvantages of C language.

0 Answers   Impetus,


void main() { for(; 0 ;) ... { printf("hello"); ... } getch(); }

1 Answers  


What is boolean in c?

0 Answers  


diff between exptected result and requirement?

0 Answers   HCL,


who invented c

13 Answers   IBM,






Write a program with dynamically allocation of variable.

0 Answers   Atos Origin,


How will you declare an array of three function pointers where each function receives two ints and returns a float?

0 Answers   TISL,


what is the purpose of the code, and is there any problem with it. unsigned int v[10]; unsigned int i = 0; while (i < 10) v[i] = i++;

2 Answers   Google,


which operator having lowest precedence?? a.)+ b.)++ c.)= d.)%

4 Answers  


A MobileNumber is a VIP number if it satisfy the following conditions. The operator should be Vodafone. Atleast one 0 (Zero) should be exist in mobile number. The number should not end with 8. The single digit sum of all the digits in the number should be equal to 9. For example if the number is 9876543210, the sum is 9+8+7+...+1+0 = 45. Sum of 4+5 = 9. Write a method: private boolean isVIPMobileNumber(String mobileNum, String operator) mobileNum phone number operator mobile operator as bsnl, Vodafone

1 Answers  


what is data structure?

5 Answers   CBSE,


c programming of binary addition of two binary numbers

4 Answers  


Categories