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

Can you think of a logic behind the game minesweeper.

0 Answers  


Why doesn't C have nested functions?

2 Answers  


How can this be legal c?

0 Answers  


What is the main difference between calloc () and malloc ()?

0 Answers  


Write program to remove duplicate in an array?

0 Answers  






How to convert decimal to binary in C using recursion??

4 Answers   HP, IBM,


pointer_variable=(typecasting datatype*)malloc(sizeof(datatype)); This is the syntax for malloc?Please explain this,how it work with an example?

2 Answers   eClerx, Excel, kenexa,


Can a file other than a .h file be included with #include?

0 Answers   Aspire, Infogain,


why program counter is 16 bit?

3 Answers  


What is nested structure with example?

0 Answers  


If an old women's age is the same as her three grand daughters i,mean the number of days old child=the no of weeks old child=no of months old child .The total yrs of all these ppl is 114 yrs...then how old is the old woman? the yr has 365 days..and 30 days each month.

1 Answers   TCS,


Can u please send me the exam pattern and also Previous papers to javed123go@gmail.com

0 Answers  


Categories