which type of question asked from c / c++ in interview.
Answers were Sorted based on User's Feedback
Answer / abhradeep chatterjee
conceptual questions which proves that the basic idea of
the candidate is clear.
| Is This Answer Correct ? | 12 Yes | 2 No |
what is out put of the following code? #include class Base { Base() { cout<<"constructor base"; } ~Base() { cout<<"destructor base"; } } class Derived:public Base { Derived() { cout<<"constructor derived"; } ~Derived() { cout<<"destructor derived"; } } void main() { Base *var=new Derived(); delete var; }
What are types of functions?
why Language C is plateform dependent
What is 'bus error'?
can v write main() { main(); } Is it true?
Give the output for the following program. #define STYLE1 char main() { typedef char STYLE2; STYLE1 x; STYLE2 y; clrscr(); x=255; y=255; printf("%d %d\n",x,y); }
How do i store a paragraph into a string? for example, if i input a long paragraph, the program will read the words one by one and concatenate them until no word is left.
Write a c program using for loop in switch case?
What are bit fields? What is their use?
What is #define used for in c?
What is switch in c?
In C program, at end of the program we will give as "return 0" and "return 1", what they indicate? Is it mandatory to specify them?