- "hello world" program.
- C program take input from user by scanf.
- C program to add two integer
- find ASCII value of a character
- find Quotient and Remainder
- find size of data types.
- swap two number by using third variable or without using
- enter a no.by user and check whether number is odd or even.
- check whether an entered character is vowel or not.
- find roots of the quadratic equation.
- C program to check whether year is leap or not.
- C program to find the largest no. between 3 number.
- find the sum of natural number between any range.
- find the character is alphabet or not.
- C program to find the factorial of a given number.
- C program to display fibonacci series.
- C program to find HCF and LCM
- C program to print all characters in alphabet.
- C program to display a multiplication table.
- C program to count the number of digits in number
- C program to reverse a number and string
- Number is prime or not
- Calculate the power of a number
- Check number and string is palindrome or not
- Check number is armstrong number or not
- Find the Factors of the Number.
- Print star patter in different shapes
- Print number pattern in different shapes
- Make a simple calculator only +,-,*,and%
- Convert decimal into binary and vice versa
- Find largest number in an array
- Add and Multiply two matrix
- Access Array Element using Pointers
- Increment a number using Call By Reference
- Find frequency or count the number of character in string
- Find Length of String
- Count the characters and vowels in a string
- Concatenate strings
- Use String function
type casting or type conversion allows us to convert one data types into another.for type casting cast operator is required. Syntax:-- (type)expression or value; Example: int f =9/4; //without type casting o/p=2 float f=(float)9/4; //with type casting o/p=2.3 Type conversion are of two types: 1)Implicit Type Conversion:- it is also known as automatic type conversion.When the type conversion is performed automatically by the compiler,such type of conversion is known as implicit type conversion. 2)Explicit Type Conversion:- the type conversion performed by the programmer is known as explicit type conversion.which is done by cast operator as above mentioned.
Comments
Post a Comment