Follow Our FB Page << CircleMedia.in >> for Daily Laughter. We Post Funny, Viral, Comedy Videos, Memes, Vines...


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 pointer

1 Answers   TCS,


What is a Genralised LInked List?? Please give a detailed explation of it..

1 Answers  


Explain the use of function toupper() with and example code?

0 Answers  


what would be the output of the following prog? Justify your answer? main() { unsigned char ch; unsigned char i; ch = -255; printf("%d",ch); i = -1; printf("%d",i); }

1 Answers  


Given only putchar (no sprintf, itoa, etc.) write a routine putlong that prints out an unsigned long in decimal. [ I gave the obvious solution of taking % 10 and / 10, which gives us the decimal value in reverse order. This requires an array since we need to print it out in the correct order. The interviewer wasn't too pleased and asked me to give a solution which didn't need the array ].

0 Answers  






write a program to generate address labels using structures?

0 Answers   SJC,


What is an lvalue in c?

0 Answers  


List out few of the applications that make use of Multilinked Structures?

1 Answers   Accenture,


Why doesn't the code "a[i] = i++;" work?

4 Answers  


Why do we use c for the speed of light?

0 Answers  


How can I write data files which can be read on other machines with different word size, byte order, or floating point formats?

0 Answers  


WRITE A C PROGRAM TO FIND SECOND BIGGEST VALUE FROM THE GIVEN VALUES

1 Answers  






Categories