C Basic Programming Questions with example
Basic Questions
- Write a program to print hello world
- Write a program to input the value of different datatype and print them
- Write a program to generate an electricity bill using a ladder if-else
- Write a program to determine whether a person is eligible for a vote or not
- Write a program to check whether the entered number is prime or not using do-while-loop
- Write a program to enter marks of five subjects and find their sum and percentage
- Write a program to enter a three-digit number and find sum and print
- Write a program to check the character is an alphabet or not
- Write a program to swap two numbers using the third variable
- Write a program to swap two numbers without using a third variable
- Write a program to print a table of a number having start limit and end limit using for loop
- Write a program to find even and odd numbers between range m to n and find their sum using the while loop
- Write a program to Count the Number of Vowels, Consonants, and so on
- Write a program to find the largest of three numbers using a conditional operator or ternary operator
- Write a program to find the largest of three numbers using if-else
- Write a program to calculate square root using the goto statement
- Write a program to Calculate the Power of a Number
- Write a program to Add Two Integers
- Write a program to Calculate the Average of array elements enter by users
- Write a program to Check Whether a Number is Positive or Negative
- Write a program to Calculate the Sum of Natural Numbers
- Write a Program to Find Largest Element in an Array
- Write a Program to Find the Length of a String
- Write a program to find the size of int, float, double, and char
Top Company Interview Questions
No comments:
Post a Comment