can anybody please tell me how to write a program in
c++,without using semicolon(;)

Answer Posted / rayn

#define SEMICOLON ;

int main()
{
cout << "Hello World!\n" SEMICOLON
return 0 SEMICOLON
}

Is This Answer Correct ?    1 Yes 2 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

what is VOID?

627


What is & in c++ function?

586


Differentiate between an inspector and a mutator ?

701


Explain what is class definition in c++ ?

594


Write a code/algo to find the frequency of each element in an array?

599






By using c++ with an example describe linked list?

598


Does c++ have arraylist?

535


Give example of a pure virtual function in c++?

583


Is std :: string immutable?

557


Can the creation of operator** is allowed to perform the to-the-power-of operations?

578


Can I learn c++ without c?

599


What is meant by forward referencing and when should it be used?

550


Are vectors passed by reference c++?

513


What are the various storage classes in C++?

644


If you want to share several functions or variables in several files maitaining the consistency how would you share it?

550