EASY 2 LEARN 'C'
Home
DotNet
Tuesday, 21 August 2012
addition of 2 variables by using static values
Addition of 2 variables
Static values are constant.we can't change
the values at run time.
#include<stdio.h>
main()
{
int a,b,c;
a = 10;
b = 20;
clrscr();
c = a+b;
printf(" c=%d",c);
getch();
}
output:-
c=30
0 comments:
Post a Comment
Newer Post
Older Post
Home
Subscribe to:
Post Comments (Atom)
Search Box
'C' Language
'C' Programming
(27)
Arrays in 'C'
(5)
Interview Que's about 'C'
(8)
Strings in 'C'
(4)
Popular Posts
One dimensional array example 2
One dimensional array example /* program to calculate sum of 10 numbers in an array */ #inc...
Check prime number up to 100
C heck prime number up to 100 :- #include<stdio.h> main() { int n,i,count; for(n = 1;n<=100;n++) { count = 0; for(i=2;i...
check addresses are correct or not
/* cosider 3 variables and find the addresses ,first two variables addresses difference is equal to another two variables ...
string functions
Strings are used in string handling operations such as, Counting the length of a string. Comparing two strings. Copyin...
a program for do-while loop
A program for do-while loop syntax :- { ...
Temperature Conversion
Temperature Conversion #include<stdio.h> main() { ...
Constants of "c"
CONSTANTS Definition :- a number represent...
addition of 2 variables by using dynamic values
Addition of 2 variables by using dynamic values Dynamic values can be changed at run time also. ...
strings in c-language
STRINGS String :- A string is a collection of characters. Strings are always en...
a program for "for loop"
A Program for "for loop" Syntax :- { for( initializati...
0 comments:
Post a Comment