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 is getch c?

1041


What does == mean in texting?

908


What is extern variable in c with example?

746


What are the valid places to have keyword “break”?

814


Write a program to reverse a string.

825


what is recursion in C

806


When can you use a pointer with a function?

740


What is hashing in c language?

828


Explain argument and its types.

782


Is anything faster than c?

759


Why do some versions of toupper act strangely if given an upper-case letter?

824


What is bss in c?

791


Why do we use pointer to pointer in c?

799


What is a far pointer in c?

778


Can you apply link and association interchangeably?

883