Other C++ General Interview Questions 

Question 
Asked @ 
Answers 

i want to know how to copy arrary without using any method
or function. I have tried the below
using System;
class e4
{
static void Main(string[] args)
{
int a,b;
int[ ] m= new int[5];
int[ ] n= new int[5];
for(a=0;a<=4;a++)
{
Console.WriteLine("enter any value");
m[a]=Convert.ToInt32(Console.ReadLine());
m[a]=n[a];
}
for(b=0;b<=4;b++)
{
Console.WriteLine(n[b]);
}
}
}
but it will give wrong result can anyone solve this problem 
Reliance 
1 
write a program to add two numbers without using an arithmetic
operator. 
NIIT 
1 
what is the order of initialization for data? 
TCS 
10 
Live example for static function? 
Infosys 
1 
How much is size of struct having 1 char & 1 integer? 
Persistent 
11 
Any one help me plzzzz.....
i have an assignment......
that is
______*********_______
Write a program that takes an equation as a string and does
the following:
Solve 8 parts to achieve 100% 1  5 are compulsory.
Input: 2x^2+3x+4=0
1) read a quadratic equation
2) print its coefficients (coefficients range is 0 to 9)
3) print the solution of the equation
4) tackle imaginary solution e.g. ( (2+3i), (23i) )
5) allow spaces within the input
6) after solving one equation; ask for an other, terminate
on empty line. *
7) tackle negative values as well *
8) tackle more than one values of same exponent (e.g. 2x^2
+ 3x^2 + 4x + 3 = 0)*
9) use strtok *
10) print the solution in fractions e.g. 1.5 should be
printed as (1)1/2 *
11) coefficient can be greater than 9**
12) values on both sides of the ‘=’ sign**
13) plot the graph of the polynomial**
14) use a compiler other than Borland**
15) submit before May 25, 2009 11:59 PM **
_______******________
plz send me c++ code at
sweety.alvi@gmail.com 

1 
Can you help me with
this one?
Make a program that
when a user inputed a
Product Name, it will
display its price, and
when the user inputed
the quantity of the
inputed product, it will
show its total price.
The output must be like
this:
Product Name:
Price:
Quantity:
Total Price:
..this is the list of
products to be inputed:
Cellphone  1500
Washing Machine  5200
Television  6000
Refrigirator  8000
Oven  2000
Computer  11000
thanks..:D


1 
sir i want to study the c++ course but ino what is the
qualification and the study methode please reply more
details in c++ 
NIIT 
1 
What is the difference between "overloading" and "overridding"? 

3 
Write a C++ program that asks the user to choose a number
between 1 and 1000. Then,
your program should be able to guess the number by asking
the user no more than 10 yes/no
questions. Use a while loop in your program 

1 
class professor {};
class teacher : public virtual professor {};
class researcher : public virtual professor {};
class myprofessor : public teacher, public researcher {};
Referring to the sample code above, if an object of class
"myprofessor" were created, how many instances of professor
will it contain?
a) 0
b) 1
c) 2
d) 3
e) 4

Quark 
4 
What is size of empty class object 
CA 
5 

For more C++ General Interview Questions Click Here 