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

Is there finally in c++?

712


Array base access faster or pointer base access is faster?

1921


What do you mean by function and operator overloading in c++?

690


What is conditions when using boolean operators?

693


What is the best way to declare and define global variables?

824






Explain what data encapsulation is in c++?

657


What is a far pointer? where we use it?

703


an operation between an integer and real always yeilds a) integer result b) real result c) float result

820


What are the advantages of using a pointer? Define the operators that can be used with a pointer.

712


What are pointers, when declared, intialized to a) NULL b) Newly allocated memory c) Nothing. Its random

760


How is c++ different from java?

671


What are exceptions c++?

681


Write a program using shift_half( ) function to shift the elements of first half array to second half and vice versa.

904


What is the difference between #import and #include in c++?

692


What is type of 'this' pointer?

689