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........................
Answer Posted / subbu
#include<stdio.h>
int main()
{
if(!printf("Hello")
{
printf("Hello");
}
else
printf("World");
}
| Is This Answer Correct ? | 0 Yes | 1 No |
Post New Answer View All Answers
What is the heap?
Write a C program to help a HiFi’s Restaurant automate its breakfast billing system. Your assignment should implement the following items: a. Show the customer the different breakfast items offered by the HiFi’s Restaurant. b. Allow the customer to select more than one item from the menu. c. Calculate and print the bill to the customer. d. Produce a report to present your complete program and show more sample output. Assume that the HiFi’s Restaurant offers the following breakfast menu: Plain Egg $2.50 Bacon and Egg $3.45 Muffin $2.20 French Toast $2.95 Fruit Basket $3.45 Cereal $0.70 Coffee $1.50 Tea $1.80
Why do we use stdio h and conio h?
a parameter passed between a calling program and a called program a) variable b) constant c) argument d) all of the above
Do you have any idea how to compare array with pointer in c?
What is data structure in c language?
Explain how do you determine the length of a string value that was stored in a variable?
Are the outer parentheses in return statements really optional?
Write a function stroverlap that takes (at least) two strings, and concatenates them, but does not duplicate any overlap. You only need to worry about overlaps between the end of the first string and the beginning of the second string. Examples: batman, manonthemoon = batmanonthemoon batmmamaman, mamamanonthemoon = batmmamamanonthemoon bat, man = batman batman, batman = batman batman, menonthemoon = batmanmenonthemoon
What is function prototype?
How many levels deep can include files be nested?
What is unsigned int in c?
please explain clearly about execution of c program in detail,in which stage are the printf sacnf getting into exeecutable code
What is meant by high-order and low-order bytes?
A program is required to print your biographic information including: Names, gender, student Number, Cell Number, line of study and your residential address.