Golgappa.net | Golgappa.org | BagIndia.net | BodyIndia.Com | CabIndia.net | CarsBikes.net | CarsBikes.org | CashIndia.net | ConsumerIndia.net | CookingIndia.net | DataIndia.net | DealIndia.net | EmailIndia.net | FirstTablet.com | FirstTourist.com | ForsaleIndia.net | IndiaBody.Com | IndiaCab.net | IndiaCash.net | IndiaModel.net | KidForum.net | OfficeIndia.net | PaysIndia.com | RestaurantIndia.net | RestaurantsIndia.net | SaleForum.net | SellForum.net | SoldIndia.com | StarIndia.net | TomatoCab.com | TomatoCabs.com | TownIndia.com
Interested to Buy Any Domain ? << Click Here >> for more details...

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 the difference between #include and #include 'file' ?

1014


What is a keyword?

1128


Why is c so powerful?

1071


Why does everyone say not to use scanf? What should I use instead?

1377


What are structures and unions? State differencves between them.

1109


Explain what is meant by high-order and low-order bytes?

1008


What is getch?

1112


How can this be legal c?

1053


What is indirection? How many levels of pointers can you have?

1095


how to create duplicate link list using C???

2519


Why void main is used in c?

1014


What is selection sort in c?

1030


When should volatile modifier be used?

967


What is #include cctype?

1083


What is new line escape sequence?

1276