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
swapped 2 numbers without using 3 variable
Swapped 2 numbers without using 3 variable #include<stdio.h> main() { int a=10,b=20; ...
Logical Interview Questions2
Logical Interview Questions There are three boxes with fruits: one box with apples, one bo...
Approaches and Algorithm of 'C'
Approaches of 'C' Language :- These are 4 types. * Procedural Language. * Logical...
your tiny steps towards programming
Your tiny steps towards programming Programming Language is divided in to two types. > ...
'C' interview questions
'C' Interview Questions * Without using (;)semicolon print the message? Ans...
switch statement program
Switch statement program #include<stdio.h> main() { in...
Logical Interview Questions
Logical Interview Questions ...
Pointers introduction
Pointer :- · It is avariable that represents the location of a data item. · It can be declared as a variable ...
program for arithmetic operators in single step
Program for arithmetic operators in single step #include<stdio.h> main() { int a,b; ...
switch statement
Switch statement Switch is a keyword,it is used to create attractive interaction betwe...
0 comments:
Post a Comment