- "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
Statement are of two types:- Declaration:- in which we declare the variable Action:- in which for,if-else,getch,printf,scanf etc are used. SMA(STATIC MEMORY ALLOCATION):- whenever we create a program,there is a line of declaration statement(or data type declarartion statement) such as int a;char b;etc. Due to this statement we create a variable a,now this variable is the example of SMA.SMA means how much memory is consumed by variable at the time of compiler,this decision is taken before the compilation. At the compile time these variable such as a and b does not having a memory.Memory is given when program is run i.e when object file convert into .exe file.But when program is run how much memory is taken by the variable is decided at the compilation time.This is known as SMA(Static Memory Allocation).
Comments
Post a Comment