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 scope of an external variable in c?

1097


What is pointers in c with example?

1139


How do you search data in a data file using random access method?

1360


What is function definition in c?

1118


How do I read the arrow keys? What about function keys?

1150


Why is c called a structured programming language?

1334


code for find determinent of amatrix

2016


What functions are used for dynamic memory allocation in c language?

1215


How can I change their mode to binary?

1185


What are the types of type qualifiers in c?

1140


a construct the"else" part of "if" statement contains anoth "if else" statement is called a) if-else b) else-if-else c) if-else-if-else d) chain if/if-else-if

1201


all c language question

2490


How many levels of indirection in pointers can you have in a single declaration?

1144


How can you increase the size of a statically allocated array?

1121


What is the scope of static variable in c?

1079