C Programming Practical Questions
Practice C programming problems covering input/output, conditions, loops, arrays, strings, functions, pointers, structures and files.
- Write a program to read two integers and display their sum, difference, product and quotient.
Review the relevant topic page, then explain the concept in your own words and give a small example.
- Write a program to determine whether an integer is even or odd.
Review the relevant topic page, then explain the concept in your own words and give a small example.
- Write a program to find the largest of three numbers.
Review the relevant topic page, then explain the concept in your own words and give a small example.
- Write a program to calculate factorial using a loop.
Review the relevant topic page, then explain the concept in your own words and give a small example.
- Write a program to display prime numbers in a range.
Review the relevant topic page, then explain the concept in your own words and give a small example.
- Write a program to find the largest element in an array.
Review the relevant topic page, then explain the concept in your own words and give a small example.
- Write a program to add two 2D matrices.
Review the relevant topic page, then explain the concept in your own words and give a small example.
- Write a program to count vowels in a string.
Review the relevant topic page, then explain the concept in your own words and give a small example.
- Write a function that returns the area of a circle.
Review the relevant topic page, then explain the concept in your own words and give a small example.
- Write a program that stores student records using a structure.
Review the relevant topic page, then explain the concept in your own words and give a small example.
- Write a program that writes and reads student data from a file.
Review the relevant topic page, then explain the concept in your own words and give a small example.