HOME
Report Broken Links
ONLINE FORUM
INTERVIEW QUESTIONS

QUESTIONS
Computer Science
Database
Java Technologies
Microsoft Technologies
C and C++
Programming
Networking
Software Development
Aptitude
Operating Systems
Companies
COLLEGE PHOTO

FastCounter by bCentral
 
C++ Basic Set 1
1. What is Operator, Operand, Expression, Statement in 'C'?
2. What is polymorphism?
3. What is operator overloading?
4. What are templates?
5. Declare a void pointer.
6. Declare a function pointer which takes a pointer to char as an argument and returns a void pointer.
7. Type-define a function pointer which takes a int and float as parameter and returns a float *.
8. What does the following C statement do?
while(*c++ = *d++);
assuming c and d are pointers to characters.
9. How do you call a C module within a C++ module.
10. What is the difference between run time binding and compile time binding? Discuss.
11. Compare and contrast C++ and Java.
12. Why does C/C++ give better run-time performance then Java?
13. Does C++ come with in-built threading support.
14. Class A derives B derives C. All have foo(). I cast C to A and call foo(). What happens?
15. All classes A, B, C have default constructor, foo() that calls parent foo() and allocates 100 bytes to their own private local variable, and a destructor that frees the 100 bytes. I create a C object and then destroy it. What's the problem? Did all the memory get freed? What if I create C, cast to A, and then destroy it. How would I make sure memory is freed? (destructor must be virtual" and each destructor must call parent destructor)"
16. What errors are caught at compile time vs link time?
17. What is the value of "a" after this?
int (*a) [10];
a++;
18. What is wrong with this?
main(){
int *ptr;
*ptr=10;
}
19. Given int n, i=10, j=20, x=3, y = 100;
What is the value of n and y at the end of each of the following expressions?
a) n = (i > j) && (x < ++y);
b) n = (j - i) && (x < y++);
c) n = (i < j) || (y+=i);
20. int x = 5;
int y = 7;
What is the value of x and y after the expression y+=x++;
21. What's the difference between C and C++?
22. What does Public and Private mean in C++
23. Is it possible to keep 2 stacks in a single array, if one grows from position one of the array, and the other grows from the last position. Write a procedure PUSH(x,s) that pushes element x onto stack S, where S is one or the other of these two stacks. Include all necessary error checks
ONLINE FORUM
Google
  Web dhruvaraj.com   
Online Books
General
Computer Science
Database Books
Hardware Books
Java Books
Languages
Microsoft Books
Operating Systems
Medical Books
Networking
Software Engineering
BUY BOOKS
Computers Internet
Home Office
Apple
Business Culture
Certification Central
Computer Science
Databases
Digital Music Computer Audio
Games Strategy Guides
Graphic Design
Hardware
Microsoft
Networking
Operating Systems
Programming
Software
Web Development
Authors, A-Z
By Publisher
General
 
Diseases:A B C D E F G H I J K L M N O P Q R S T U V W X Y Z