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 / dinakaran gct
#include<stdio.h>
void main()
{
if(1)
{
printf("HELLO!");
goto HERE;
}
else
{
HERE:
printf("HAI....");
}
}
| Is This Answer Correct ? | 18 Yes | 19 No |
Post New Answer View All Answers
What is the method to save data in stack data structure type?
How to find a missed value, if you want to store 100 values in a 99 sized array?
What is meant by 'bit masking'?
In this assignment you are asked to write a multithreaded program to find the duplicates in an array of 10 million integers. The integers are between -5000,000 to 5000,000 and are generated randomly. Use 10 threads, each thread works on 1000,000 integers. Compare the time needed to accomplish the task with single thread of execution program. Do not include the time to fill the array with integers in the execution time.
Which are low level languages?
Explain 'bus error'?
Are global variables static in c?
What are 3 types of structures?
what do u mean by Direct access files? then can u explain about Direct Access Files?
What is the purpose of void pointer?
Write a program to print ASCII code for a given digit.
What are c preprocessors?
When should a type cast be used?
write a program to create a sparse matrix using dynamic memory allocation.
Should a function contain a return statement if it does not return a value?