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   interview questions urls   External Links  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 (43)   OOPS (179)   C++ General (205)
 
Suggest New Category 
 


 

  Question  Asked @ Answers Views     select
 
What is "map" in STL?  1  630
What is the Difference between "printf" and "sprintf"? iSoft   2  1312
What will happen if I allocate memory using "new" and free it using "free" or allocate sing "calloc" and free it using "delete"?  2  1027
What is the difference between "calloc" and "malloc"? ADP  4  2366
Is there something that we can do in C and not in C++? Patni  5  1490
What is a "RTTI"? HCL   4  1328
What is "mutable" keyword?  2  1417
Explain "passing by value", "passing by pointer" and "passing by reference" ?  5  1119
What is "strstream" ? Huawei  1  109
What are inline functions? Verizon  2  1298
Can we generate a C++ source code from the binary file?  0  109
How to write a program such that it will delete itself after exectution?  1  926
What is the Difference between "vector" and "array"? TCS   5  3135
What are the types of STL containers?  1  850
What is Namespace? Samsung  1  1065
E-Mail New Answers        Answer Selected Questions
 
 
Prev    1   ... 3   ... 5   ... 7   ... 9   ... 11   ... 13   ... 15   ... 17    18   [19]    20  ... 21   ... 23   ... 25   ... 27   ... 29    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
 
write a code for this. serial_number contained in the header of the file will be read , if this serial number is less than a previous serial number within a successfully processed file, or is the same as another serial number within a successfully processed file, or if the field contains anything other than 7 digits, then the file must error with the reason ‘Invalid SERIAL_NUMBER’. 20 TCS
Describe how to safeguard a system through acquisition of an antivirus Program and systematic backup. 42  
How Do you Code Composition and Aggregation in C++ ? 710 IBM
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 9  
To modify an, existing worksheet. What steps are involved for: 1. Inserting and deleting rows and columns. 2. Printing cell formulas 3Jld displayed values 3. Using the page setup command 37  
what is multithreading in c++ , what is difference between multithreading and singlethreading. 4  
can you explain how to use JavaBean in Project 19 Infosys
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 } //--------------------------------------------------------- 12  
Can we generate a C++ source code from the binary file? 109  
How to deploy web appliction in web logic ? 6 Unisys
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?????? 39  
How const functions will be treated by compiler? 95 Symphony
Describe the elements of Microsoft Word screen. Write down steps for creating, saving, retrieving, editing and printing a document. 44  
i had specified the access specifier for abstarct class member like (pure virtual function) as private.But it can be accessed by the derived class.How the private member of one class is accessed by other class.if any body face this problem and found the solution plz reply to me. 23  
When is the last time you coded in C/C++? What is the most lines of original C/C++ code you have personally written in one project? How confident are you in your ability to write C or C++ without a reference? 53 Microsoft
design a c++ class for the chess board,provide a c++ class definition for such class(only class definition is required) 73  
Question In a class, there is a reference or pointer of an object of another class embedded, and the memory is either allocated or assigned to the new object created for this class. In the constructor, parameters are passed to initialize the data members and the embedded object reference to get inialized. What measures or design change should be advised for proper destruction and avioding memory leaks, getting pointers dangling for the embedded object memory allocation? Please suggest. Question Submitted By :: Sunil Kumar I also faced this Question!! Rank Answer Posted By Re: In a class, there is a reference or pointer of an object of another class embedded, and the memory is either allocated or assigned to the new object created for this class. In the constructor, parameters are passed to initialize the data members and the embedded object reference to get inialized. What measures or design change should be advised for proper destruction and avioding memory leaks, getting pointers dangling for the embedded object memory allocation? Please suggest. Answer # 1 use copy constructors 0 Shanthila There is something to be taken care in destructor, in copy constructor, suppose the memory is assigned to the embedded member object pointer with the parameter passed value, but if some other objects of different class also are pointing to this memory, then if some one deletes the object then this class member pointer object will become dangling, or if the object is not deleted properly then there will be memory leak. Please suggest the design change required to handle or avoid this situation 31  
Write a program to demonstrate the use of 'Composition' in C++ 7  
How the compilers arranges the various sections in the executable image? 144  
how can u do connectivity in c++ language? plz send me connectivity code in c++ ? 41 Ascent
E-Mail New Answers        Answer Selected Questions
 
 
 
 
 
 
   
Copyright Policy  |  Terms of Service  |  Help  |  Site Map 1  |  Articles  |  Site Map  |   Site Map  |  Contact Us
   
Copyright © 2007  ALLInterview.com.  All Rights Reserved.

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