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
What is the difference between #include and #include 'file' ?
What is a keyword?
Why is c so powerful?
Why does everyone say not to use scanf? What should I use instead?
What are structures and unions? State differencves between them.
Explain what is meant by high-order and low-order bytes?
What is getch?
How can this be legal c?
What is indirection? How many levels of pointers can you have?
how to create duplicate link list using C???
Why void main is used in c?
What is selection sort in c?
When should volatile modifier be used?
What is #include cctype?
What is new line escape sequence?