ALLInterview.com :: Home Page KalAajKal.com
 Advertise your Business Here     
Browse  |   Placement Papers  |   Company  |   Code Snippets  |   Certifications  |   Visa Questions
Post Question  |   Post Answer  |   My Panel  |   Search  |   Articles  |   Topics  |   ERRORS new
   Refer this Site  Refer This Site to Your Friends  Site Map  Bookmark this Site  Set it as your HomePage  Contact Us     Login  |  Sign Up                      
info       Did you received any Funny E-Mails from your Friends and like to share with rest of our friends? Yeah!! you can post that stuff   HERE
Google
 
Categories  >>  Software  >>  Programming Languages  >>  C++  >>  C++ General
 
 


 

 
 STL interview questions  STL Interview Questions
 OOPS interview questions  OOPS Interview Questions
 C++ General interview questions  C++ General Interview Questions
Question
can anybody please tell me how to write a program in 
c++,without using semicolon(;)
 Question Submitted By :: Rahul Arora
I also faced this Question!!     Rank Answer Posted By  
 
  Re: can anybody please tell me how to write a program in c++,without using semicolon(;)
Answer
# 1
int main()
{

if(printf("can anybody tell me how to write "))
{
}
return 0;
}
 
Is This Answer Correct ?    0 Yes 8 No
Amit
 
  Re: can anybody please tell me how to write a program in c++,without using semicolon(;)
Answer
# 2
void main()
{
if(0)
{

}
}

if you use void with main function, you have no need to
return a value.
 
Is This Answer Correct ?    6 Yes 2 No
Jasbir Singh
 
 
 
  Re: can anybody please tell me how to write a program in c++,without using semicolon(;)
Answer
# 3
void main()
{

if(printf("i can try to write ... "))
{
}
}
 
Is This Answer Correct ?    7 Yes 2 No
Sanjay Singh
 
  Re: can anybody please tell me how to write a program in c++,without using semicolon(;)
Answer
# 4
#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 ?    2 Yes 1 No
Anonymous
 

 
 
 
Other C++ General Interview Questions
 
  Question Asked @ Answers
 
what is meaning of isa and hsa  1
Write a program to reverse a linked list? Catalytic-Software3
Why is it difficult to store linked list in an array? Lucent4
Can we generate a C++ source code from the binary file?  2
What is the Difference between "C structure" and "C++ structure"?  6
When volatile can be used? Symphony3
Which one of the following describes characteristics of "protected" inheritance? a) The base class has access only to the public or protected members of the derived class. b) The derived class has non-public, inheritable, access to all but the private members of the base class. c) The derived class has access to all members of the base class. d) The private members of the base class are visible within the derived class. e) Public members of the derived class are privately accessible from the base class. Quark4
What are smart pointer? Whats its use? CTS1
Implement strcmp Citadel3
How to reduce a final size of executable?  2
why the size of an empty class is 1  3
Evaluate: int fn(int v) { if(v==1 || v==0) return 1; if(v%2==0) return fn(v/2)+2; else return fn(v-1)+3; } for fn(7); a) 10 b) 11 c) 1 Quark2
What is "mutable" keyword? Infosys2
template<class T, class X> class Obj { T my_t; X my_x; public: Obj(T t, X x) : my_t(t), my_x(x) { } }; Referring to the sample code above, which one of the following is a valid conversion operator for the type T? a) T operator T () { return my_t; } b) T operator(T) const { return my_t; } c) operator(T) { return my_t; } d) T operator T (const Obj &obj) { return obj.my_t; } e) operator T () const { return my_t; } Quark1
What is Name Decoration? Lucent2
You have to take 2 arrays of length 10. Input the values of array 1 from the user. Then copy the values of array 1 to array 2 in ascending order For example if user enters 9, 5, 6, 8, 1, 0, 2, 7, 4, 3 then copy the smallest element i.e. 0 first followed by 1, 2 and so  1
The "virtual" specifier in a member function enables which one of the following? a) Monmorphism b) Late binding c) Metamorphism d) Solomorphism e) Inheritance Quark3
iam a fresher to Qt(GUI a c++ based framework software). i need to develop the basic applications on designer by drag and dropping mechanism...so pls send me the procedure to design applications?  1
What is the difference between = and == in C? Intel9
Why preincrement operator is faster than postincrement?  3
 
For more C++ General Interview Questions Click Here 
 
 
 
 
 
   
Copyright Policy  |  Terms of Service  |  Help  |  Site Map 1  |  Articles  |  Site Map  |   Site Map  |  Contact Us interview questions urls   External Links 
   
Copyright © 2007  ALLInterview.com.  All Rights Reserved.

ALLInterview.com   ::  Forum9.com   ::  KalAajKal.com