can anybody please tell me how to write a program in
c++,without using semicolon(;)
Answers were Sorted based on User's Feedback
Answer / 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 |
Answer / sanjay singh
void main()
{
if(printf("i can try to write ... "))
{
}
}
| Is This Answer Correct ? | 16 Yes | 6 No |
Answer / anonymous
#include<iostream.h>
void main()
{
}
/*this is also a c++ prog.it is never said dat main body
cannot be empty*/
| Is This Answer Correct ? | 8 Yes | 2 No |
Answer / ck giri from biratnagar
#include<iostream.h>
void main()
{
while(0)
{}
}
| Is This Answer Correct ? | 6 Yes | 1 No |
Answer / rayn
#define SEMICOLON ;
int main()
{
cout << "Hello World!\n" SEMICOLON
return 0 SEMICOLON
}
| Is This Answer Correct ? | 1 Yes | 2 No |
Answer / amit
int main()
{
if(printf("can anybody tell me how to write "))
{
}
return 0;
}
| Is This Answer Correct ? | 3 Yes | 22 No |
Which is the best c++ compiler?
What is the use of class in c++?
What is else syntax in c++?
Write some differences between an external iterator and an internal iterator? Describe the advantage of an external iterator.
What is jump statement in C++?
What is the difference between an array and a list?
Explain how an exception handler is defined and invoked in a Program.
int age=35; if(age>80) {Console.WriteLine("Boy you are old");} else {Console.WrieLine("That is a good age");}
Why is it difficult to store linked list in an array?
What do you mean by early binding?
Why cout is used in c++?
What is object slicing and how can we prevent it?