C Programming Interview Questions and Answers

C Programming Interview Questions and Answers

Top C Programming Interview Question and Answers for freshers & Experienced

C Programming language is a one of the most widely used and famous language. C language is a general purpose and structured programming language. In this c resembles other high level structured programming languages like Pascal and Fortan77, Algol, BASIC, COBOL etc.It is mainly used for system programming, writing operating system, as well as different application programming. C is developed at AT &T’d Bell Laboratories of USA in 1972.It was designed and written by Dennis Ritchic.C is more popular because reliable, simple and easy to use. It supports both high level and low level language script. It supports the source code scripting under blocks of statements with specific identity and it also supports data structures and file structures and more. Most of the state-of-the-art software has been implemented using C. Today’s most popular C++, Linux OS, Windows and RDBMS MySQL have been written in C. If you are new to programming, C is a one of the best choice to start your programming journey.


What is a C Programming language?

What are the characteristics of C programming language?

Can you write a basic program in C?

Write a C program without using semicolon to print ‘Hello world’?

What are the steps to write c program and get the output?

Can you explain basic structure of C program?

What are the static functions in C?

What are reserved words with a programming language?

Can you define Modifier in C?

Can you explain indirection?

What are different storage class specifies in C?

Can you explain Dangling Pointer in C?

Can you define Toupper () function in C? And Example?

How do you access the values within an array?

Can you explain increment statement or decrement statement in C?

Can you explain the Call by Value and Call by Reference?

What is the difference between malloc() and calloc()?

Can you define pointer in C?

Can you define array in C?

Can you explain Memory leak in C

Can you explain XOR linked list?

Can you explain stack in C?

Can you explain binary trees?

Can you define Treap?

Can you define Splay tree?

Can you explain nested loop?

What is the correct program or code to have following output in c using nested for loop?

Write a program to reverse a given number in C?

Write a simple code fragment that will check if a number is positive or negative.

Can you explain formal parameters?

Can you explain control structures?

Can you explain actual arguments?

Can you explain newline escape sequence?

Can you explain output redirection?

Can you explain run-time errors?

Can you explain sequential access file?

Can you explain variable initialization?

Can you explain FIFO?

Can you explain modulus operator?

What are header files and what are its uses in C programming?

What are the ways to a null pointer can use in C programming language?

Can you explain syntax error?

Can you convert the string into a number?

Can you explain endless loop?

Can you explain recursion in C?

Below which operator is incorrect?

What is the difference between Compiler and interpreter?

What is the difference between functions abs() and fabs()?

Can you define Wild Pointers in C?

Can I use int data type to store the value 32768? Why?

What is wrong with this statement? myName = Jack;

Can two or more operators such as and be combined in a single line of program code?

Why is it that not all header files are declared in every C program?

Can you explain order of precedence with regards to operators in C.

How do you determine the length of a string value that was stored in a variable?

Not all reserved words are written in lowercase. TRUE or FALSE?

What is the difference between the expression ++a and a++?

Can you define endless loop?

What is a program flowchart and how does it help in writing a program?

How many times interviewgig is get printed?

What is the output of this C code?