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 value of b if a=5; b=++a + ++a

31 Answers   Infosys, TCS, Tech Mahindra,


How can you return multiple values from a function?

1 Answers  


while running a program, i got the msg that press return key to exit.what that mean in C as there are no such options as far i know.

1 Answers   TCS,


c pgm count no of lines , blanks, tabs in a para(File concept)

2 Answers  


write a c programs to do multiplication of two numbers with out using arithmatic operator ??????????

7 Answers   Infosys, TCS,


Difference between exit() and _exit() function?

1 Answers  


what is the difference between structural,object based,object orientd programming languages?

1 Answers   PanTerra,


Is there any book to know about Basics of C Language?

4 Answers  


Create a structure to specify data on students as given below: Roll number, Name, Department, Course, and Year of joining. Assume that there are not more than 450 students in the collage. (a) Write a function to print the names of all students who joined in the last 3 years. (b) Write a function to print the data of a student whose roll numbers are divisible by 4.

1 Answers  


Write a code of a general series where the next element is the sum of last k terms.

1 Answers   Aspiring Minds,


Explain how do you use a pointer to a function?

1 Answers  


What is C++

4 Answers  


Categories