The code is::::: if(condition)
Printf("Hello");
Else
Printf("World");
What will be the condition in if in such a way that both
Hello and world are printed in a single attempt?????? Single
Attempt in the sense... It must first print "Hello" and it
Must go to else part and print "World"..... No loops,
Recursion are allowed........................
Answers were Sorted based on User's Feedback
Answer / hari nair
What 'bout this???
If(printf("Hello")
{
printf("Hello");
}
else
printf("World");
//printf returns the no. of arg printed, as no arg printed in if condition, goes straight to the else clause....
| Is This Answer Correct ? | 0 Yes | 5 No |
Answer / vaibhav
int a=5,b=5;
if(a==5)
printf("hello");
else;
printf("world");
| Is This Answer Correct ? | 4 Yes | 28 No |
Answer / manjunath.goudar
//#include<stdio.h>
main()
{
if(1)
printf("hello");
else;
printf("world");
}
| Is This Answer Correct ? | 7 Yes | 33 No |
name the language for writing c compiler?
wat are the two methods for swapping two numbers without using temp variable??
3.write a simple program that will output your name,phone number,e-mail address,and academic major on separate lines 1.create an account and a personal directory for your work b.find out how to create a subdirectory on your system.create one called info c.you will use a text editor to type in your programs and data files.some C systems have a built in text editor;others do not.Find out what text editor you will be using and how to access it.create a text file(not a program) containing your name ,address,and telephone number on separate lines.Next,write the brand of computer you are using and the name of the text editor.Then write a paragraph that describes your past experience with computers.save this file in your info directory. d. find out how to print a file on your system .print out and turn in the file you created in (c).
What is the mean of this statement:: if(int i=0 * i=9)
What is the output for the below program? void main() { float me=1.1; double you=1.1; if(me==you) printf("love c"); else printf("know c"); }
write a programme to enter some number and find which number is maximum and which number is minimum from enterd numbers.
Which of the following data structures is on average the fastest for retrieving data: 1) Binary Tree 2) Hash Table 3) Stack
how can i print "hello"
Why does everyone say not to use scanf? What should I use instead?
On most computers additional memory that is accessed through an adapter of feature card along with a device driver program. a) user memory b) conventional memory c) expandedmemory d) area
What is a macro?
Write a program to check armstrong number in c?