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++       
 
  STL (45)   OOPS (186)   C++ General (222)
 
Suggest New Category 
 


 

View Page with Answers
  Question  Asked @ Answers Views     select
 
Explain the need for "Virtual Destructor"? Infosys  1  233
What is the difference between "overloading" and "overridding"?  3  887
What is the Diffrence between a "assignment operator" and a "copy constructor"? Wipro  2  1359
What is the Difference between "C structure" and "C++ structure"?  4  1836
What will happen if when say delete this ?  3  1248
What is the output of printf("%d")? HCL   25  2623
what is meaning of isa and hsa  1  520
Find out the bug in this code,because of that this code will not compile....... #include <iostream> #include <new> #include <cstring> using namespace std; class balance { double cur_bal; char name[80]; public: balance(double n, char *s) { cur_bal = n; strcpy(name, s); } ~balance() { cout << "Destructing "; cout << name << "\n"; } void set(double n, char *s) { cur_bal = n; strcpy(name, s); } void get_bal(double &n, char *s) { n = cur_bal; strcpy(s, name); } }; int main() { balance *p; char s[80]; double n; int i; try { p = new balance [3]; // allocate entire array } catch (bad_alloc xa) { cout << "Allocation Failure\n"; return 1; } Impetus  2  799
what is the behaviour of C and C++ compiler for the below statements. int *p; p = malloc(100); Is the behaviour same ? or different ?  1  1063
How is an Abstract Base Class(ABC) related to an "Abstract Data Type" (ADT)  2  1153
Why a "operator=(...)" when there is a copy ctor?  2  1278
How do I open binary files?  1  1168
Why and when is a virtual destructor needed?  2  2029
What normal C constructs work differently in C++?  1  1080
why c++ is called OOPS? waht is inherutance? what is compiler?  2  1559
E-Mail New Answers        Answer Selected Questions
 
 
Prev    1   ... 4   ... 7   ... 10   ... 13   ... 16   ... 19    21   [22]    23  ... 25   ... 28   ... 31    Next
 
 
 C interview questions   C Interview Questions  C++ interview questions   C++ Interview Questions  VC++ interview questions   VC++ Interview Questions
 Delphi interview questions   Delphi Interview Questions  Programming Languages AllOther interview questions   Programming Languages AllOther Interview Questions
 
 
 
Un-Answered Questions
 
 Question Views Asked at   Select
 
What are function poinetrs? where are they used? 36 CTS
please visit this site you'll find my question this is my homework please answer it if you can http://easyscience.org/ib/lofiversion/index.php/t36168.html 58  
Describe the My Computer and My Documents folders; identify the elements that are present in every Window. 64  
Describe how to safeguard a system through acquisition of an antivirus Program and systematic backup. 58  
How the compilers arranges the various sections in the executable image? 160  
how can u do connectivity in c++ language? plz send me connectivity code in c++ ? 65 Ascent
Describe the elements of Microsoft Word screen. Write down steps for creating, saving, retrieving, editing and printing a document. 79  
design a c++ class for the chess board,provide a c++ class definition for such class(only class definition is required) 97  
What are smart pointer? Whats its use? 48 CTS
Write a program using GUI concept for the scheduling algorithms in Operating system like SJF,FCFS etc.. 46  
How to handle exception in c++, For example in a functions i am assigning memory to some variables and also in next instructions in am dividing one variable also. If this functions generates a error while allocating memory to those variable and also while dividing the variable if i divide by zero then catch block how it will identify that this error has cone from perticular instruction 51  
i hav very low percentage in 12th n BSCwhich is around 50.......coz it was just imposed on me 2 b a science graduate,nw m doin MCA n hav aggregate 74% ....what shud i answer if company's HR ask me about dis much low previous percentage?????? 50 Infosys
How to execute business logic for only once ..?even though user clicks submit button multiple times by mistake..? (i disabled JavaScript) 56  
write a code for this:trailer recordId contains a value other than 99, then the file must error with the reason ‘Invalid RECORD_ID’(User Defined Exception). 31  
How const functions will be treated by compiler? 110 Symphony
How Do you Code Composition and Aggregation in C++ ? 971 IBM
how can i access a direct (absolute, not the offset) memory address? here is what i tried: wrote a program that ask's for an address from the user, creates a FAR pointer to that adress and shows it. then the user can increment/decrement the value in that address by pressing p(inc+) and m(dec-). NOW, i compiled that program and opened it twice (in 2 different windows) and gave twice the same address to it. now look what happen - if i change the value in one "window" of the program, it DOES NOT change in the other! even if they point to the same address in the memory! here is the code snippet: //------------------------------------------------------ #include <stdio.h> //INCLUDE EVERY KNOWN HEADER FILE #include <conio.h> //FOR ANY CASE... #include <iostream.h> #include <dos.h> #include <process.h> main() { int far *ptr; //FAR POINTER!!! long address; char key=0; //A KEY FROM THE KEYBOARD int temp=0; clrscr(); cout<<"Enter Address:"; cin>>hex>>address; //GETS THE ADDRESS clrscr(); (long)ptr=address; temp=*ptr; //PUTS THE ADDRESS IN THE PTR cout<<"["<<hex<<(unsigned long)ptr<<"]="<<*ptr<<" = "<< (char)(*ptr); //SHOWS: [address]=value=ASCII symbol. while (key!=27) //WHILE YOU DONT PRESS ESC. { while(!kbhit()) //WHILE KEY IS NOT PRESSED { if (temp!=*ptr) { temp=*ptr; clrscr(); cout<<"["<<hex<< (unsigned long)ptr<<"]="<<*ptr<<" = "<<(char)(*ptr); }; //IF THE VALUE HAS CHANGED, CLEAR THE SCREEN AND SHOW //AGAIN if (key=='p') {key=0; (*ptr)++; } //INCREMENT VALUE if (key=='m') {key=0; (*ptr)--; } //DEC. VALUE }; key=getch(); //IF A KEY IS PRESSED, READ IT FROM THE //KEYBOARD }; return 0; //IF ESC WAS THE KEY, EXIT THE PROGRAM } //--------------------------------------------------------- 38  
Have you ever interfaced with a database? 68 IBM
what's the difference between abstract class and concreate class? what's the meaning of standard template library(STL)? 39  
If P is the population on the first day of the year, B is the birth rate, and D is the death rate, the estimated population at the end of the year is given by the formula: The population growth rate is given by the formula: B – D Write a program that prompts the user to enter the starting population, birth and death rates, and n, the number of years. The program should then calculate and print the estimated population after n years. Your program must have at least the following functions: 1. growthRate: This function takes its parameters the birth and death rates, and it returns the population growth rate. 2. estimatedPopulation: This function takes its parameters the current population, population growth rate, and n, the number of years. It returns the estimated population after n years Your program should not accept a negative birth rate, negative death rate, or a population less than 2. please answer my question .... 65 Microsoft
E-Mail New Answers        Answer Selected Questions
 
 
 
 
 
 
   
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