Category Archives: C

An excellent resource for C puzzles practice

I discovered a great website that comprehensively covers puzzles and questions in C language. Gowrikumar.com – C Puzzles What’s special about these puzzles and questions is that some......

10 Challenging char pattern programs

Output of a char pattern program Here are 10 pattern type problems statements with solutions. All the programs are written in C language.  This post is a part of the pattern programs series. W......

10 Challenging number pattern programs in C

This is a continuation to the series of challenging pattern C programs in Interview Mantra. This set of 10 puzzling programs are of type number patterns. Also read Print Pattern Programs Write ......

10 Challenging star pattern programs in C

Computer languages are not as easy as human languages, they need you to become a computer yourself, think like a computer and write an algorithm. Computer programs are fun if you take them up as......

Roundup of C Interview Programs

Roundup of all Interview programs in Interview Mantra. Write a program to find factorial of the given number. Write a program to illustrate pass by value. Write a program to illustrate pass by ......

Interview Questions on Structures in C

A set of interview questions on structures in C. What is a structure? What are the differences between structures and unions? What are the advantages of using unions? How can you use typedef ......

Interview Questions on Functions in C

A set of questions on functions in C, covered in Interview Mantra. What is the purpose of main() function? Explain command line arguments of main function? What are header files? Are function......

Interview Questions on Operators and Constants in C

How to swap two numbers using bitwise operators? Which bitwise operator is suitable for checking whether a particular bit is ON or OFF? Which bitwise operator is suitable for turning OFF a par......

Interview Questions on Variables and Storage classes in C

What is the difference between declaring a variable and defining a variable? What is a static variable? What is a register variable? Where is an auto variables stored? What is scope & sto......

Interview Questions on Pointers in C

What is a pointer in C? What are the advantages of using pointers? How is pass by reference achieved using pointers in C? What are the differences between malloc() and calloc()? How to use r......