Hai ra

C Interview Questions and Answers | C Languages Interview Questions with Answers | C Languages Interview Questions and Answers For Freshers

C Interview Questions and Answers  | C Languages Interview Questions with Answers | C Language Interview Questions and Answers For Freshers

Hi  today i would like to share more C interview  Question and Answers in my last post i have posted  5 C Languages Interview Questions and Answers .
C Language
 Keep  watching this section in  up coming days  I will post C Programs , other concepts videos if Possible jobs.


1 What is  this  pointer in c?
   This pointer is a pointer accessible only within the member functions of a class, struct, or union type. It points to the object for which the member function is called. Static member functions do not have a this pointer.
2 What are the uses of  pointer?                                                                                                                     
 
    Pointer is used in the following cases They are as follows
  • It is used to access the array elements.
  • It is used for the  dynamic memory allocation.
  • It is used in the Call by reference.
  • It is used in the data structures like trees, graph, linked list etc.
3. What is  purpose of main() function?
 
    The function main() invokes other functions within it.It is the first function to be called when  program starts execution.
  • It is starting function.
  • It returns an int value to the environment that called  program.
  • Recursive call is allowed for main( ) also.
  • It is user defined function.
4. What are the different types of storage classes in C?                                                                                
 
    There are four differernt types of storage classes.
  • Automatic
  • Extern
  • Regiter
  • Static
5. Define inheritance?
  Inheritance is process by which objects of one class acquire properties of objects of another class.

6. What is  macro?
  Macros are identifiers that represent statements or expressions. To associate meaningful identifiers with constants, keywords, and statements or expressions.
7. What is arrays?                                                                                                                                           
  Array is a variable that hold multiple elements which has same data type.
8. What is  difference between the  #include‹ › and #include “ ”?                                                                    
  #include‹ › ----> Specifically used for the built in header files.
#include “ ” ----> Specifically used for user defined/created n header file.
9. What are the advantages of  functions?
 
  • It reduces the Complexity in a program by reducing  code.
  • Function are easily understanding and reliability and execution is faster.
  • It also reduces  Time to run a program.In other way,Its directly proportional to Complexity.
  • Its easy to find-out the errors due to the blocks made as function definition outside main function.
10. How do declare an array?
  We can declare an array by specify its data type, name and the number of elements the array holds between the square brackets immediately following the array name.
syntax :
data_type array_name[size];

MORE Questions will be Updated soon.

 


Previous
Next Post »