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 / vignesh1988i

but goto is not a good sort of programming ............. a
well knowledgeable programmer wont use goto..... according
to me........... plz think of any other logic??????????

Is This Answer Correct ?    5 Yes 5 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What is the difference between ++a and a++?

680


In which layer of the network datastructure format change is done

1422


What does volatile do?

554


write a program to rearrange the array such way that all even elements should come first and next come odd

1751


write a program to print largest number of each row of a 2D array

1860






Explain the properties of union. What is the size of a union variable

710


Can static variables be declared in a header file?

606


main(){char *str;scanf("%s",str);printf("%s",str); }The error in the above program is: a) Variable 'str' is not initialised b) Format control for a string is not %s c) Parameter to scanf is passed by value. It should be an address d) none

712


What is a loop?

544


What is the use of a static variable in c?

582


.find the output of the following program? char*myfunc(char*ptr) { ptr +=3; return (ptr); } int main() { char*x,*y; x="HELLO"; y=myfunc(x); printf("y = %s ",y); return 0; }

1982


What is the value of uninitialized variable in c?

560


Do you have any idea about the use of "auto" keyword?

656


What is spark map function?

571


What would happen to X in this expression: X += 15; (assuming the value of X is 5)

1285