C Basic Questions and answers. This section will help you to answer question related to C in interviews.
- History of C ?
- What is machine code ?
- What is Compiler , assembler and interpreter ? Give Examples of each
- Structure of C program ? ( Building Blocks )
- What is Preprocessor ?
- What is macro ?
- What is library in c ? Give Exmaples.
- Write compilation process ?
- How to represent octal and hex number in c ? Give examples
- Write on:
Conditional Statement
I/O statement
Looping Statements - What is variable in c ?
- What is datatypes in c ?
- What is Global and Local variables ?
- What are storage classs in C ? Give Examples.
- What is process ?
- What are the memory segments in process ?
- Give an example of use of static and extern storage class, Where do we use this ?
- What is an array ?, Give an Example
- What is string ? Give Examples
- What is pointer ? Give an Example
- What is size of pointer ?
- Difference between pointers and array .
- What is NULL pointer ?
- What are conditional statements ? Give Examples of each
- What is difference between go to statement and break statement ?
- What are loops in c ? Give Examples
- What is function prototyping ?
- What does printf and scanf returns ? Explain with examples .
- What is function in c ?What is Call by value and Call by reference passing ?
- What is formal parameters and actual parameters in c ?
- What is recursion in c ? Explain with an Examples.
- What is Dynamic Memory allocation in c ?Explain each DMA functions with Example .
- Difference between static allocation and dynamic allocation ?
- What is structure in C ? Explain with Examples.
- Access element in structure using structure pointer .
- What is union in c ? Explain with Example .
- What is difference between structure and unioun ?
- What are the modes for file opening ?
- What is file handling in c ? Explain different file handling functions in C ?
- What is file pointer ?
- What is difference between global and static variables in c ?
- What is dangling Pointer ?