Friday 4 October 2013

C Language Interview Question and Answers


1. What is C language?
  C is a programming language developed at AT & T's Bell Laboratories of USA in 1972.The C programming language is a standardized programming language developed in the early 1970s by Ken Thompson and Dennis Ritchie for use on the UNIX operating system. It has since spread to many other operating systems, and is one of the most widely used programming languages
2. What are the types of constants in c?
 
    C constants can ba divided into two categories :
  • Primary constants
  • Secondary constants
3. What are the types of C intructions?
 
    Now that we have written a few programs let us look at the instructions that we used in these programs. There are basically three types of instructions in C :
  • Type Declaration Instruction
  • Arithmetic Instruction
  • Control Instruction
4. What is a pointer?
  Pointers are variables which stores the address of another variable. That variable may be a scalar (including another pointer), or an aggregate (array or structure). The pointed-to object may be part of a larger object, such as a field of a structure or an element in an array.
5. What is the difference between arrays and pointers?
  Pointers are used to manipulate data using the address. Pointers use • operator to access the data pointed to by them.
Arrays is a collection of similar datatype. Array use subscripted variables to access and manipulate data. Array variables can be Equivalently written using pointer expression.

No comments:

Post a Comment