write a c program to print "Welcome" without using semicolon
in the whole program ??

Answer Posted / peanut64

//C++
#include <iostream>
using namespace std;

void main()
{
while((cout<<"hello"<<endl)==false)
{
}

}

//c
#include <stdio.h>

void main()
{
while(printf("Hello")==false)
{
}

}

[My lecturer asked me this question. The above solution
works for me]

Is This Answer Correct ?    2 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What do you know about the use of bit field?

610


How can I implement sets or arrays of bits?

602


What should malloc(0) do?

610


4-Take two sets of 5 numbers from user in two arrays. Sort array 1 in ascending and array 2 in descending order. Perform sorting by passing array to a function mySort(array, sortingOrder). Then multiply both the arrays returned from function, using metric multiplication technique in main. Print result in metric format.

1724


What do you mean by dynamic memory allocation in c? What functions are used?

651






Are pointers integer?

546


Why do we need volatile in c?

740


will u please send me the placement papers to my mail???????????????????

1360


What is realloc in c?

581


What is c value paradox explain?

573


Explain how do you sort filenames in a directory?

601


What is the use of bit field?

636


What is the general form of #line preprocessor?

582


What is structure padding in c?

622


What is the difference between a string copy (strcpy) and a memory copy (memcpy)? When should each be used?

622