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 |
What are namespaces in c++?
What are c++ redistributables?
What can I safely assume about the initial values of variables which are not explicitly initialized?
Suppose that data is an array of 1000 integers. Write a single function call that will sort the 100 elements data [222] through data [321].
Arrange Doubly linked list in the ascending order of its integral value and replace integer 5 with 7?
What is a tuple c++?
What is the hardest coding language to learn?
Is it possible for a member function to delete the pointer, named this?
Explain differences between new() and delete()?
What is static class data?
Which field is used in c++?
How can you quickly find the number of elements stored in a static array? Why is it difficult to store linked list in an array?