Download as pdf or txt
Download as pdf or txt
You are on page 1of 4

BASIC ‘C’ PROGRAMING LANGUAGE

 What is ‘C’ Programming Language?


 Why ‘C’ Programming Language?
 Features of ‘C’ Programming Language.
 ‘C’ Programming Structure.
 Different Data types in ‘C’ and size of every data
type.
 Declaration & Initialization of a variable in ‘C’
and rules to declare a variable.
 Decision Making.
a. If condition with examples.
b. If else condition with examples.
c. Switch condition with examples.
 LOOPS.
a. For loop with examples.
b. While loop with examples.
c. Do while loop with examples.
 Practice with different examples about printf()
and scanf() functions.
 What is a Function and its use and parts of
function?
 What is array and why they are used.
Example Programs
 Write a program to print hello world.
 Write a ‘C’ program to print size of every data types.
 Write a ‘C’ program to read three integers from user
using scanf function and use conditional statements
like if, if else and switch to print large number on to
the screen.
 Write a C program that accepts two integers from
the user and calculate the sum, subtraction,
multiplication, division and modulus, of the two
integers.
 Write a ‘C’ program to print a given year is leap year
or not.
 Write a program in C to store elements in an array
and print it using loops.
 Write a ‘C’ program to print numbers from 1 to 10
using for and while loop.
 Write a ‘C’ program to print the ASCII value of a
given char.
 Write a ‘C’ program to print the below format
1123
2123
3123
 Write a ‘C’ program to print summation of numbers
between X and Y (Scan X and Y from user)
 Write a ‘C’ program to print a given number is even
or odd using bitwise operators.
 Write a ‘C’ program to swap to given numbers using
bitwise operators.
 Write a ‘C’ program to perform pre and post
increment operators for a given number.
 Write a ‘C’ program to print reverse the user given
numbers.
 Write a ‘C’ program to print how many digits are
there in the user given number.
 Write a ‘C’ program to SET a particular bit in a given
number.
 Write a ‘C’ program to RESET a particular bit in a
given number.
 Write a ‘C’ program to Toggle a particular bit in a
given number.

Links for Practice:


https://www.onlinegdb.com/online_c_compiler
https://www.programiz.com/c-programming/online-
compiler/
https://www.w3schools.in/c-tutorial/
https://www.tutorialspoint.com/cprogramming/index.
htm
https://www.geeksforgeeks.org/c-programming-
language/

You might also like