1. What is the output of printf("%d")
2. What will happen if I say delete this
3. Difference between "C structure" and "C++ structure".
4. Diffrence between a "assignment operator" and a "copy
constructor"
5. What is the difference between "overloading" and
"overridding"?
6. Explain the need for "Virtual Destructor".
7. Can we have "Virtual Constructors"?
8. What are the different types of polymorphism?
9. What are Virtual Functions? How to implement virtual
functions in "C"
10. What are the different types of Storage classes?
11. What is Namespace?
12. What are the types of STL containers?.
13. Difference between "vector" and "array"?
14. How to write a program such that it will delete itself
after exectution?
15. Can we generate a C++ source code from the binary file?
16. What are inline functions?
17. Talk sometiming about profiling?
18. How many lines of code you have written for a single
program?
19. What is "strstream" ?
20. How to write Multithreaded applications using C++?
21. Explain "passing by value", "passing by pointer" and
"passing by reference"
22. Write any small program that will compile in "C" but not
in "C++"
23. Have you heard of "mutable" keyword?
24. What is a "RTTI"?
25. Is there something that I can do in C and not in C++?
26. Why preincrement operator is faster than postincrement?
27. What is the difference between "calloc" and "malloc"?
28. What will happen if I allocate memory using "new" and
free it using "free" or allocate sing "calloc" and free it
using "delete"?
29. What is Memory Alignment?
30. Explain working of printf.
31. Difference between "printf" and "sprintf".
32. What is "map" in STL?
33. When shall I use Multiple Inheritance?
34. What are the techniques you use for debugging?
35. How to reduce a final size of executable?
36. Give 2 examples of a code optimization.

Answers were Sorted based on User's Feedback



1. What is the output of printf("%d") 2. What will happen if I say delete this 3. Diff..

Answer / saikumar

1)ans :Error generated .because every statement end with semicolon(;),but in the given question there is no semicolon(;).
2)ans :The program will be terminated.
3)ans :IN 'c' language program should write from main()function and it's execution starts from main()function top to bottom.
4)ans:assignment operator (=)is operator which is assign the right most result to left most operand.
copy constructor:constructor means which is used to create the objects (or) any thing

Is This Answer Correct ?    3 Yes 5 No

1. What is the output of printf("%d") 2. What will happen if I say delete this 3. Diff..

Answer / saikumar

22)ans :
main()
{
int i=1,n=10;
while(i<=n)
{
printf("%d\n");
}

Is This Answer Correct ?    0 Yes 5 No

Post New Answer

More C Interview Questions

Calculate 1*2*3*____*n using recursive function??

0 Answers  


What is identifiers in c with examples?

0 Answers  


1) There is a singing competition for children going to be conducted at a local club. Parents have been asked to arrive at least an hour before and register their children’s names with the Program Manager. Whenever a participant registers, the Program Manager has to position the name of the person in a list in alphabet order. Write a program to help the Program Manager do this by placing the name in the right place each time the Program Manger enters a name. The Logic should be written in Data Structures?

0 Answers   KPIT,


main() { float a=3.2e40; printf("%d",a); }

9 Answers   Satyam,


Why is conio.h not required when we save a file as .c and use clrscr() or getch() ?

2 Answers  






how 2 compile & execute c program with out using editor?

2 Answers   HP,


Explain what does the characters 'r' and 'w' mean when writing programs that will make use of files?

0 Answers  


Explain what are the advantages and disadvantages of a heap?

0 Answers  


Can a program have two main functions?

0 Answers  


main() { char p[] = "hello world!"; p = "vector"; printf("%s",p); }

2 Answers   Vector, Vector India,


Is it better to use a pointer to navigate an array of values, or is it better to use a subscripted array name?

0 Answers  


write a program which the o/p should b in such a way that s triangle if I/p is 3,a Square/rectangle if I/P=4,a pentagon if I/P=5 and so on...forget about the I/P which is less than 3

0 Answers   ADP,


Categories