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 / gg
#include<stdio.h>
main()
{
if(printf("hello")==0)
printf("hello");
else
printf("world");
}
Think is there any Other.....
| Is This Answer Correct ? | 62 Yes | 10 No |
Post New Answer View All Answers
what is the diffrenet bettwen HTTP and internet protocol
Write a program on swapping (100, 50)
How can you increase the size of a dynamically allocated array?
What is the benefit of using const for declaring constants?
How can I trap or ignore keyboard interrupts like control-c?
Write a program to find factorial of a number using recursive function.
pierrot's divisor program using c or c++ code
Suppose we have a table name EMP as below. We want to perform a operation in which, I want to change name ‘SMITH’ from as ‘SMITH JAIN’. Also I want to change the name of the column from ENAME to E_NAME. EMPNO ENAME JOB MGR HIREDATE SAL 7369 SMITH Coder 7902 17-DEC-80 800 7499 ALLEN SALESMAN 7698 20-FEB-81 1600 7521 WARD SALESMAN 7698 22-FEB-81 1250
code for quick sort?
What is the use of sizeof () in c?
Why is c known as a mother language?
How pointers are declared?
Why c is called free form language?
What is 2c dna?
PROGRAM TO WRITE CONTENTS OF 1 FILE IN REVERSE TO ANOTHER FILE,PROGRAM TO COPY 1 FILE TO ANOTHER BY SPECIFYING FILE NAMES AS COMMAND LINE