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

what is the structure pointer?

0 Answers   Accenture, HCL,


A character flag or control mechanism that delineates one data item from another a) variable b) constant c) delimiter d) call by reference

0 Answers  


i want explaination about the program and its stack reprasetaion fibbo(int n) { if(n==1 or n==0) return n; else return fibbo(n-1)+fibbo(n-2); } main() { fibbo(6); }

2 Answers  


Write a code on reverse string and its complexity.

0 Answers   Expedia,


Define macros.

0 Answers   Tech Mahindra,






What would happen to X in this expression: X += 15; (assuming the value of X is 5)

0 Answers  


What are data breakpoints?

3 Answers   Adobe,


What is the general form of a C program?

0 Answers  


how to get the starting address of file stored in harddisk through 'C'program.

2 Answers   Siemens,


write a program that declares an array of 30 elements named "income" in the main functions. then cal and pass the array to a programmer-defined function named "getIncome" within the "getIncome" function, ask the user for annual income of 30 employees. then calculate and print total income on the screen using the following function: "void getIncome ( ai []);

0 Answers   TCS,


What is the code in while loop that returns the output of given code?

0 Answers  


Which node is more powerful and can handle local information processing or graphics processing?

0 Answers  


Categories