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

Answer Posted / jasbir singh

void main()
{
if(0)
{

}
}

if you use void with main function, you have no need to
return a value.

Is This Answer Correct ?    16 Yes 4 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

How do I write a c++ program?

598


When is dynamic checking necessary?

606


What is polymorphism and its type in c++?

597


Is c++ a pure oop language?

608


Does c++ have foreach?

531






Do you know the problem with overriding functions?

577


what is COPY CONSTRUCTOR and what is it used for?

628


How much is c++ certification?

591


What doescout<<(0==0) print out a) 0 b) 1 c) Compiler error: Lvalue required

577


Is c++ pass by reference or value?

575


How java is different from c and c++?

654


Is empty stack c++?

525


What is #include iostream?

749


I was a c++ code and was asked to find out the bug in that. The bug was that he declared an object locally in a function and tried to return the pointer to that object. Since the object is local to the function, it no more exists after returning from the function. The pointer, therefore, is invalid outside.

616


Is there structure in c++?

594