Right Place For Right PersonTM 
Sponsored Ads
Buy This Website(This website is for Sale)
Home Tutorials Articles Forums Source Code Books Certifications Interviews Questions

C Interview Questions And Answers( Objective and Subjective)( NEW )

C Interview Questions And Answers

C Objective Interview Questions And Answers(10)

C Subjective Interview Questions And Answers(100)     

C syntax, semantics and simple programming questions(61)    

C Aptitude Questions(179) Objectives 

C++ Interview Questions

Q1:How do you decide which integer type to use?
Q2:What should the 64-bit integer type on new, 64-bit machines be?
Q3:What’s the best way to declare and define global variables?
Q4:What does extern mean in a function declaration?
Q5:What’s the auto keyword good for?
I can’t seem to define a linked list node which contains a pointer to itself.
Q6:How do I declare an array of N pointers to functions returning pointers to functions returning pointers to characters?
Q7:How can I declare a function that returns a pointer to a function of its own type?
Q8:My compiler is complaining about an invalid redeclaration of a function, but I only define it once and call it once. What’s happening?
Q9:What can I safely assume about the initial values of variables which are not explicitly initialized?
Q10:Why can’t I initialize a local array with a string?
What is the difference between char a[] = “string”; and char *p = “string”; ?
Q11:How do I initialize a pointer to a function?
Q12:What is Operator, Operand, Expression, Statement in 'C'?
Q13: What is polymorphism?
Q14:What is operator overloading?
Q15:What are templates?
Q16:Declare a void pointer.
Q17: Declare a function pointer which takes a pointer to char as an argument and returns a void pointer.
Q18:Type-define a function pointer which takes a int and float as parameter and returns a float *.
Q19:What does the following C statement do?
while(*c++ = *d++);
assuming c and d are pointers to characters.
Q20:How do you call a C module within a C++ module.
Q21:What is the difference between run time binding and compile time binding? Discuss.
Q22:Compare and contrast C++ and Java.
Q23:Why does C/C++ give better run-time performance then Java?
Q24:Does C++ come with in-built threading support.
Q25:Class A derives B derives C. All have foo(). I cast C to A and call foo(). What happens?
Q26: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)"
Q27:What errors are caught at compile time vs link time?
Q28:What is the value of "a" after this?
int (*a) [10];
a++;
Q29: What is wrong with this?
main(){
int *ptr;
*ptr=10;
}

Q30: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);

Q31: int x = 5;
int y = 7;
What is the value of x and y after the expression y+=x++;

Q32:What's the difference between C and C++?
Q33:What does Public and Private mean in C++
Q34: 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
Q35:Why would you use: public/private/protected inheritance?
Q36:Why does the language not define static virtual functions
Q37:Can you make a destructor virtual?
Q38: Why would you want a virtual destructor?
Q39:How would you print the first 10 characters of a string?
Q40:When would you use private inheritance?
Q41:How and why would you implement a '<<' operator for a String class?
Q42:When would you use a reference?
Q43:Why do you want to have virtual member functions? How was "it" done before vmf's came into existence? What was wrong with it?
Q44:Why is protected" as bad as ""public""?"
Q45:Give one example use of a static member.
Q46: Why did new (a new expression) have to be a language-level construct while malloc could be a library function?
Q47: What are the advantages and disadvantages of templates over plain old inheritance and heterogenous containers?
Q48: What are the problems with a tree-style hierarchy?
Q49:Why is iostream better than stdio? (There are umpteen reasons, I'm just talking about the type-safe answer...)
Q50:Why would someone want to have RTTI when there are virtual functions? Doesn't that sound contradicting in purpose? Discuss one situation where RTTI could be useful, if you think so.
More>>>

Contact Us

Sponsored Ads
Sponsored Ads
Sponsored Ads
Sponsored Ads
Sponsored Ads
Interview Questions And Answers
Struts interview questions and answers (Subjective)
500 Java Objective Questions and Answer
Core Java Objective Questions And Answers
Core Java Subjective Questions And Answers
Core Java Interview Questions And Answers
Core Java Interview Questions and Answers (Subjective)
Core Java Interview Questions and Answers( Objective)
50 Servlet interview questions
155 Java Interview Questions
EJB Interview Questions and Answers(Subjective)
R4R,JSP Interview Questions and Answer(Subjective)
R4R,Java Servlets Interview Questions and Answers(Subjective)
Core Java Subjective ,Objective and Interview Questions And Answers
275 Core java interview questions
Java Objective Questions and Answer
Java Architect Interview Questions
Applet Interview Questions and Answers
Core Java example
Servlet Objective Questions And Answers
Servlet Subjective Questions And Answers
Servlet Interview Questions And Answers
JSP Objective Questions And Answers
JSP Subjective Questions And Answers
JSP Interview Questions And Answers
JDBC Objective Questions And Answers
JDBC Subjective Questions And Answers
JDBC Interview Questions And Answers
JDBC Interview questions and answers
Networking Interview questions and answers
Servlets Interview questions and answers
EJB Objective Questions And Answers
EJB Subjective Questions And Answers
EJB Interview Questions And Answers
Hibernate Objective Questions And Answers
Hibernate Subjective Questions And Answers
Hibernate Interview Questions And Answers
Spring Objective Questions And Answers
Spring Subjective Questions And Answers
Spring Interview Questions And Answers
Struts Objective Questions And Answers
Struts Subjective Questions And Answers
Struts Interview Questions And Answers
Ant Objective Questions And Answers
Ant Subjective Questions And Answers
Ant Interview Questions And Answers
PHP Objective Questions And Answers
PHP Subjective Questions And Answers
PHP Interview Questions And Answers 1
ASP.net Objective Questions And Answers
ASP.net Subjective Questions And Answers
ASP.net Interview Questions And Answers 1
ASP.net interview questions ,ASP.net interview answers,ASP.net interview questions and answers
PHP interview questions ,PHP interview answers,PHP interview questions and answers
Testing Objective Questions And Answers
Testing Subjective Questions And Answers
Testing Interview Questions And Answers
Ajax Tutorials
Ajax Objective Questions And Answers
Ajax Subjective Questions And Answers
Ajax Interview Questions And Answers
Linux Objective Questions And Answers
Linux Subjective Questions And Answers
Unix Subjective Questions And Answers
Unix Interview Questions And Answers
HR interview questions and answers
HR Interview Questions Tips
HR Objective Questions And Answers
HR Subjective Questions And Answers
HR Interview Questions And Answers
Learn C Language with in a day
 C /C++ Questions
C Objective Questions And Answers
C Subjective Questions And Answers
C Interview Questions And Answers
C Objective Interview Questions And Answers(10)
C Subjective Interview Questions And Answers(100) 
C syntax,semantics and simple programming questions(61) 

Linux Interview Questions And Answers
Unix Objective Questions And Answers
C Aptitude Questions(179)
C++ Interview Questions And Answers    
C++ Objective Questions And Answers
C++ Subjective Questions And Answers
C++ Interview Questions And Answers
C,C++ objective Interview Questions and answers
C Interview Questions And Answers( Objective and Subjective)
C Objective Interview Questions And Answers(10)

C Subjective Interview Questions And Answers(100)

C,C++ Interview Questions

35 C++ Interview Questions And Answers(Subjective)

109 C++ Interview Questions

Java Script Interview Question and Answer(1-10).
 Java Script Interview Question and Answer(11-20).
Java Script  Interview Question and Answer(21-30).
Java Script Interview Question and Answer(31-40).
Javascript Objective Questions And Answers
Javascript Subjective Questions And Answers
Javascript Interview Questions And Answers
MFC Interview Questions And Answers(Subjective)

MFC Interview Questions And Answers(Subjective)

ATL Interview Questions And Answers(Subjective)

COM DCOM Interview Questions And Answers(Subjective)

Win32API Interview Questions And Answers(Subjective)

ActiveX Interview Questions And Answers(Subjective)

R4R, VC++ AllOther Interview Questions And Answers(Subjective)

PL/SQL Interview Questions And Answers(Subjective)

152 PL/SQL Interview Questions And Answers(Subjective)

Asp Objective Questions And Answers
Asp Subjective Questions And Answers
Asp Interview Questions And Answers 1

VB Objective Questions And Answers

Contact US:

Your Name:


Your Email:

Message:

Comments:

Give Your Comments:


Advertiser PRIVACY POLICY ||User PRIVACY POLICY || R4R Group Srvices