Hey friends these are the top 50 basic C programming questions , I advise you all be prepare all these question before appearing for an interview.
- Write a program to print numbers from 1 to 100 without using loops
- Write a C program to swap two variables without using a temporary variable.
- What is the 8 queens problem? Write a C program to solve it?
- Write a C program to print a square matrix helically.
- Write a C program to reverse a string.
- Write a C program to reverse the words in a sentence in place.
- Write a C program generate permutations.
- Write a C program for calculating the factorial of a number.
- Write a C program to calculate pow(x,n)?
- Write a C program which does wildcard pattern matching algorithm.
- How do you calculate the maximum sub array of a list of numbers?
- How to generate fibonacci numbers? How to find out if a given number is a Fibonacci number or not? Write C programs to do both.