Home C Language Basic C Programs

Basic C Programs

Basic C Programs

basic c programs, c language basics, some basic c programs, c programming basic programs, basics of c, simple c programs,c programming examples with output, c programming

Basic c programs for Computer Science Engineering , Information Technology ,Master of Computer Applications and Bachelor of Science students.

Here basic c programs for practicing in LAB for CSE, MCA, IT and BSC students.

Practicing Lab C Language basics  for CSE, MCA, IT, BSc students.

Basic C Progrmas
Basic C Programs

Write a sample C Program.

Write a C program to print a block F using hash (#), where the F has a height of six characters and width of five and four characters.

Write a C program to compute the perimeter and area of a rectangle with a height of 7 inches and width of 5 inches.

Write a C program to display multiple variables.

Write a C Program to read and write a variable.

Basic C Programs on Arithmetic Operators

Write a C Program to give demo on Arithmetic operations.

Write a C Program to demonstrate “const” keyword.

Write a C Program to Swap two numbers.

Write a C Program to Swap two numbers without third variable.

Write a C Program to demonstrate Pre and Post Increment.

Write a C Program to demonstrate Pre and Post Decrement.

Write a C Program to print ASCII Value of a Character.

Write a C Program to convert Celsius to Fahrenheit.

Write a C Program to convert Fahrenheit to Celsius.

Write a C program to calculate the distance between the two points.

Write C program to find the distance traveled at regular intervals of time given the values of ‘u’ and ‘a’.

Programs on Conditional Statements

Write a C Program to demonstrate Ternary operator.

Write a C Program to Find Whether the Given number is Even or Odd.

Write a C Program to Simulate 3rd Law at Motion.

Write a C program to find the roots of a quadratic equation.

Write a C program that accepts 4 integers p, q, r, s from the user where r and s are positive and p is even. If q is greater than r and s is greater than p and if the sum of r and s is greater than the sum of p and q print “Correct values”, otherwise print “Wrong values”.

Write a C program to convert a string to a long integer.

Write a C Program to demonstrate “nested if” (or)
Write a C Program to find Biggest among three numbers.

Write a program in C which is a Menu-Driven Program to compute the area of the various geometriterations in cical shape.

Programs on iterations in c

Write a C Program to print first ‘n’ natural numbers.

Write a program in C to display the n terms of even natural numbers and their sum.

Write a C Program to print nth multiplication table.

Write a C Program to Add Digits & Multiplication of a number.

Write a C Program to calculate the Factorial of a given number.

Write a C program to print given pattern(This page contains different pattern programs).

Write a C program to print Floyd Triangle.

Write a C Program to print Pascal Triangle.

Write a C Program to generate the first n terms of the Fibonacci series.

Write a program in C to display the n terms of harmonic series and their sum. 1 + 1/2 + 1/3 + 1/4 + 1/5 … 1/n terms.

Write a C program to calculate the following Sum: Sum=1-x2/2! +x4/4!-x6/6!+x8/8!-x10/10!.

Write a C program to read in two numbers, x and n, and then compute the sum of this geometric progression: 1+x+x2+x3+………….+xn.

Loops with Conditional statements

Write a C Program to Find Whether the Given Year is a Leap Year or not.

Write a C Program to Find Whether the Given Number is Prime Number or not.

Write a C Program to Find whether the given number palindrome or not.

Write a C Program to Find Whether the Given Number is Armstrong Number or not.

Write a program which checks a given integer is Fibonacci number or not.

Write a C program to generate first ‘n’ prime numbers, where n is a value Supplied by the user.

Basic C Programs on Arrays

Write a C program to find both the largest and smallest number in a list of integers.

Write a program in C to print all unique elements in an array.

Write a program in C to separate odd and even integers in separate arrays.

Write a program in C to sort elements of array in ascending order.

Write a program in C for multiplication of two square Matrices.

Write a program in C to find transpose of a given matrix.

Write a program in C to search an element in a row wise and column wise sorted matrix.

Example Programs on String Arrays in C

Write a program in C to print individual characters of string in reverse order.

Write a program in C to compare two strings without using string library functions.

Write a program in C to copy one string to another string.

Basic C Programs on Structures

Write a C Program to Store Information Using Structures with Dynamically Memory Allocation.

Write a C Program to Add Two Complex Numbers by Passing Structure to a Function.

Basic C Programs on Pointers

Write a C program to demonstrate how to handle the pointers in programming.

Write a program in C to demonstrate the use of & (address of) and *(value at address) operator.

Write a program in C to convert decimal number to binary number using the function.

Write a program in C to check whether a number is a prime number or not using the function.

Write a program in C to get the largest element of an array using the function.

Write a program in C to show how a function returning pointer.

File Handling Programs in C

Write a program in C to append multiple lines at the end of a text file.

C Language

C language has now become a widely used professional language for various reasons. C language is used to mathematical, business and scientific environments. Every language supports some pre-defined functions and keywords. Using those functions and keywords we can write any type of program statements. C language is one of most popular language in today’s programming language. A program is a group of statements or set of instructions. If we want to perform some task we can write some statements based on that find out the result.

Basic C Programs c language basics basics of c c++ basics simple c programs c# basics c++ basic programs simple c++ program basic c interview questions  c language basics notes basic c programming questions c language basics pdf basic c programs for interviews c programming basics pdf basics of c language for beginners.

11th biology

Get Multiple Choice Questions and Answers in 11th biology with detailed explanations for preparation of NEET 2022 exams, CBSE exams, State Board exams and Competitive exams of RRB, RRBNTPC, Bank PO’s, CET 2022, B.ed exams, etc. Find out Unit wise online test series in 11th class biology.

ncert solutions for class 8 maths chapter 7
Click here for ncert solutions for class 8 maths chapter 7

ncert solutions for class 8 maths chapter 7 deals with Cubes and Cube roots

Exercises and solutions of Cubes and Cube roots available here so students can read online view.

mensuration.in provides all exercises with answers for chapter 7 in class 8 maths.