0% found this document useful (0 votes)
99 views3 pages

Frequently Asked C Programs in Interview

These are some of the basic c programming questions which are subjected exclusively for the beginners.

Uploaded by

Gowtham
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
99 views3 pages

Frequently Asked C Programs in Interview

These are some of the basic c programming questions which are subjected exclusively for the beginners.

Uploaded by

Gowtham
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
You are on page 1/ 3

Frequently asked c programs in interview

1. Write a C program to check whether given number is prime number


or not.
2. Write a C program to check whether given number is even or odd.
3. Write a C program to check whether given number is palindrome
number or not.
4. Write a C program to check whether given string is palindrome or
not.
5. Write a C program to print fibonacci series of given range.
6. Write a C program to get factorial of a given number.
7. Write a C program to find out the G.C.D of two numbers.

Area and volume

1. Write a C program to find the area of circle.


2. Write a C program to find the area of any triangle.
3. Write a C program to find the area of equilateral triangle.
4. Write a C program to find the area of right angled triangle.
5. Write a C program to find the area of rectangle.
6. Write a C program to find the area of trapezium.
7. Write a C program to find the area of rhombus.
8. Write a C program to find the area of parallelogram.
9. Write a C program to find the volume and surface area of cube.
10. Write a C program to find the volume and surface area of cuboids.
11. Write a C program to find the volume and surface area
of cylinder.
12. Write a C program to find the surface area and volume of a cone.
13. Write a C program to find the volume and surface area of sphere.
14. Write a C program to find the perimeter of a circle, rectangle and
triangle.

C program with numbers

1. Write a C program to find out L.C.M. of two numbers.


2. Write a C program to find out sum of digit of a given number.
3. Write a C program to find out power of a given number.
4. Write a C program to add two numbers without using addition
operator.
5. Write a C program to subtract two numbers without using
subtraction operator.
6. Write a C program to find largest among three numbers using
binary minus operator.
7. Write a C program to find largest among three numbers using
conditional operator.
8. Write a C program to find out prime factor of a given number.
9. Write a C program to find out NCR factor of a given number.
10. Write a C program to convert string to int (atoi).
11. Write a C program to find out H.C.F. of two numbers.
12. Write a C program to find largest of n numbers.
13. Write a C program to split number into digits.
14. Write a C program to count number of digits in a given number.
15. Write a C program to get last two digits of year.
16. Write a C program to count the total number of 7 coming between
1 to 100.
17. Write a C Program to compute quotient and remainder.
Write a C Program to check leap year.
18. Write a C Program to check whether a number is positive or
negative.
19. Write a C Program to count number of digits in an integer.

Swapping

1. Write a C program to swap two numbers.


2. Write a C program to swap two numbers without using third
variable (3 ways).
3. Write a C program for swapping of two arrays.
4. Write a C program for swapping of two strings.

Conversion (Number System)


1. Write a C program to convert decimal number to binary number
and vice versa.
2. Write a C program to convert decimal number to octal number and
vice versa.
3. Write a C program to convert decimal number
to hexadecimal number and vice versa.
4. Write a C program to convert octal number to binary number and
vice versa.
5. Write a C program to convert octal number to hexadecimal number.
6. Write a C program to convert currency or number in word.
7. Write a C program to convert each digits of a number in words
8. Write a C program to convert binary number to hexadecimal
number.
9. Write a C program for addition of binary numbers.
10. Write a C program for multiplication of two binary numbers.
11. Write a C program to convert decimal number to roman and vice
versa.
12. Write a C program for fractional decimal to binary fraction
conversion.

You might also like

pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy