Your Ad Here

Friday, August 8, 2008

new c links for free download

this site will help u out in programming with c.

http://cplus.about.com/od/ebooks/A_Collection_of_Downloadable_EBooks.htm


please post comments to provide more links for C language.

Hi friends download the latest C language books. The quality of the books is high. I hope you will download and enjoy the books.

Subscribe in this blog to get latest updates.

links for c language

now iam giving one link this is very helpful for u i think.

U can download e-books from these link. u can click the below link i think u can enjoy now.


http://www.computer-books.us/c.php


please post your comments i can update my blog

Tuesday, August 5, 2008

area of sphere with out reading input

#include 
#include
int main()

{
double rad=1.0,area;
double *rp, *parea;
rp=&rad;
parea=&area;
*parea= 4.0/3.0 * *rp * *rp * *rp;
printf("%lf", *parea);
getch();

}

write a program in C to find the area of triangle ?

#include 
#include
int main()

{
double l=4.0, b=2.0,area;
double *lp,*bp, *parea;
lp=&l;
bp=&b;
parea=&area;
*parea= 0.5 * (*lp) * (*bp);
printf("%lf", *parea);
getch();

}

Write a program in C to find the area of circle

#include 
#include
int main()

{
double radius=2.0,area;
double *pradius, *parea;
pradius=&radius;
parea=&area;
*parea= 3.14 * (*pradius) * (*pradius);
printf("%lf", *parea);
getch();

}

display the message

#include 
#include

int main()

{
char *ch="welcome to c programming writting with pointers\0";

puts(ch);

getch();

}

Write a program in C to print the upper case letters to lower case

#include 
#include
int main()

{
char any, *pany;
pany=&any;
scanf("%c", &any);
printf("%c", *pany+32);
getch();
}

Write a program in C to print the lower case letters to upper case

#include 
#include
int main()

{
char any, *pany;
pany=&any;
scanf("%c", &any);
printf("%c", *pany-32);
getch();
}

Arithmetic operations of two double numbers

#include stdio.h

int main()

{
double one,two;
double *po, *pt;
po=&one;
pt=&two;
scanf("%lf%lf", &one,&two);
printf("\nsum : %lf \ndiff : %lf \npro : %lf \nquo : %lf",
*po+*pt,*po-*pt,*po**pt,*po/(*pt));
getch();

}
i think ur enjoying with pointer versions now you are perfect of arithmetic operations of two double numbers.
if u want to learn more about on c with pointer version please always visit this site.
i can accept you are enjoying with lot with C with pointer notation.

Monday, August 4, 2008

Program : Pointer version

#include 
#include
int main()

{
float fno, *pf;
int ino, *pi;
pi=&ino;
pf=&fno;
scanf("%d", &ino);
*pf=*pi; // *pf=(float)*pi , both are same.
printf("%f",*pf);
getch();
}
i think now u got one program perfectly. please learn daily u will be enjoying with c language.
learn c always c is the basic of all computer languages.


if u want to learn DOT NET please visit this site
http://vishnu-info.blogspot.com/