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
How do I write a c++ program?
When is dynamic checking necessary?
What is polymorphism and its type in c++?
Is c++ a pure oop language?
Does c++ have foreach?
Do you know the problem with overriding functions?
what is COPY CONSTRUCTOR and what is it used for?
How much is c++ certification?
What doescout<<(0==0) print out a) 0 b) 1 c) Compiler error: Lvalue required
Is c++ pass by reference or value?
How java is different from c and c++?
Is empty stack c++?
What is #include iostream?
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.
Is there structure in c++?